|
ach
Real-Time IPC Library
|
Control structure for event handling loop. More...
#include <experimental.h>
Data Fields | |
| struct ach_channel * | channel |
| Channel to get messages from. | |
| void * | context |
| Context argument for handler. | |
| enum ach_status(* | handler )(void *context, struct ach_channel *channel) |
| Handler function. More... | |
Control structure for event handling loop.
| enum ach_status(* ach_evhandler::handler)(void *context, struct ach_channel *channel) |
Handler function.
Called whenever there is new data in the channel.
Handler should return ACH_OK when new frames are read, or ACH_STALE_FRAMES if no new frames are read. Any other return value will terminate the event loop.