ach
Real-Time IPC Library
experimental.h File Reference

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...
 

Detailed Description

This header file defines experimental public interfaces for Ach.

Author
Neil T. Dantam

Function Documentation

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.

Parameters
[in,out]handlersarray of handler descriptors
[in]nsize of handlers array
[in]periodtimeout to wait between execution of periodic function when requested in flags.
[in]periodic_handlerfunction to executre periodicly, i.e., when timeout occurs or when new messages are received.
[in]periodic_contextcontext argument to the periodic_handler
[in]optionsbit flags, may include ACH_EV_O_PERIODIC_INPUT and ACH_EV_O_PERIODIC_TIMEOUT