ach
Real-Time IPC Library
|
This header file defines experimental public interfaces for Ach. More...
Go to the source code of this file.
Data Structures | |
struct | ach_evhandler |
Control structure for event handling loop. More... | |
Macros | |
#define | ACH_EV_O_PERIODIC_TIMEOUT 0x01 |
Execute the periodic function after the period expires. | |
#define | ACH_EV_O_PERIODIC_INPUT 0x02 |
Execute the periodic function every time new messages are received. | |
Functions | |
enum ach_status ACH_WARN_UNUSED | ach_evhandle (struct ach_evhandler *handlers, size_t n, const struct timespec *period, enum ach_status(*periodic_handler)(void *context), void *periodic_context, int options) |
Event loop for handling multiple channels. More... | |
This header file defines experimental public interfaces for Ach.
enum ach_status ACH_WARN_UNUSED ach_evhandle | ( | struct ach_evhandler * | handlers, |
size_t | n, | ||
const struct timespec * | period, | ||
enum ach_status(*)(void *context) | periodic_handler, | ||
void * | periodic_context, | ||
int | options | ||
) |
Event loop for handling multiple channels.
[in,out] | handlers | array of handler descriptors |
[in] | n | size of handlers array |
[in] | period | timeout to wait between execution of periodic function when requested in flags. |
[in] | periodic_handler | function to executre periodicly, i.e., when timeout occurs or when new messages are received. |
[in] | periodic_context | context argument to the periodic_handler |
[in] | options | bit flags, may include ACH_EV_O_PERIODIC_INPUT and ACH_EV_O_PERIODIC_TIMEOUT |