forked from analogdevicesinc/libiio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iiod: Handle event reads in tinyiiod
Due to the fact that tinyiiod runs thread-less, it is not possible to have a blocking read to iio_event_stream_read(). To handle event reads properly, tinyiiod based applications should return -EAGAIN in the iio_backend_ops.read_ev() callback if there is no event, and have the responsability to call iiod_set_event() when an event (or error) do occur. Signed-off-by: Paul Cercueil <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters