18 #ifndef _XENOMAI_ALCHEMY_EVENT_H 19 #define _XENOMAI_ALCHEMY_EVENT_H 22 #include <alchemy/timer.h> 23 #include <alchemy/compat.h> 42 typedef struct RT_EVENT RT_EVENT;
63 char name[XNOBJECT_NAME_LEN];
86 const struct timespec *abs_timeout);
88 #ifndef __XENO_COMPAT__ 92 unsigned int mask,
unsigned int *mask_r,
93 int mode, RTIME timeout)
97 alchemy_abs_timeout(timeout, &ts));
102 unsigned int mask,
unsigned int *mask_r,
103 int mode, RTIME timeout)
107 alchemy_rel_timeout(timeout, &ts));
114 unsigned int *mask_r));
120 const char *name, RTIME timeout);
unsigned int value
Current value of the event flag group.
Definition: event.h:55
int rt_event_wait_timed(RT_EVENT *event, unsigned int mask, unsigned int *mask_r, int mode, const struct timespec *abs_timeout)
Wait for an arbitrary set of events.
Definition: event.c:395
char name[XNOBJECT_NAME_LEN]
Name of event flag group.
Definition: event.h:63
int rt_event_inquire(RT_EVENT *event, RT_EVENT_INFO *info)
Query event flag group status.
Definition: event.c:537
int nwaiters
Number of tasks currently waiting for events.
Definition: event.h:59
int rt_event_create(RT_EVENT *event, const char *name, unsigned int ivalue, int mode)
Create an event flag group.
Definition: event.c:173
int rt_event_clear(RT_EVENT *event, unsigned int mask, unsigned int *mask_r)
Clear event flags.
Definition: event.c:496
int rt_event_delete(RT_EVENT *event)
Delete an event flag group.
Definition: event.c:250
Event status descriptor.
Definition: event.h:51
int rt_event_bind(RT_EVENT *event, const char *name, RTIME timeout)
Bind to an event flag group.
Definition: event.c:607
int rt_event_signal(RT_EVENT *event, unsigned int mask)
Signal an event.
Definition: event.c:450
static int rt_event_wait(RT_EVENT *event, unsigned int mask, unsigned int *mask_r, int mode, RTIME timeout)
Wait for an arbitrary set of events (with relative scalar timeout).
Definition: event.h:101
int rt_event_unbind(RT_EVENT *event)
Unbind from an event flag group.
Definition: event.c:630
static int rt_event_wait_until(RT_EVENT *event, unsigned int mask, unsigned int *mask_r, int mode, RTIME timeout)
Wait for an arbitrary set of events (with absolute scalar timeout).
Definition: event.h:91