Structure for unblocking a blocked sensor read.
typedef union {
struct {
int option;
} tx;
} sensor_devctl_unblock_u;
BlackBerry 10.0.0
The union sensor__devctl__unblock__u is used with the DCMD_SENSOR_UNBLOCK device command to unblock a sensor read.
sensor_devctl_unblock_u sensorUnblock;
sensorUnblock.tx.option = 0; // unblock client read with EINTR, zero bytes returned
result = devctl(fd, DCMD_SENSOR_UNBLOCK, &sensorUnblock,
sizeof(sensorUnblock), NULL);
where: result is EOK for success (or see errno return code descriptions).