IBNOS
Functions
Events

Functions

struct eventeventCreate (bool wakeupAll)
 Creates a new kernel event object. More...
 

Detailed Description

Events are kernel objects which can be used to wait for multiple objects. They are comparable with epoll on Linux. You can attach other objects like pipes, semaphores or timers and wait will return as soon as one of the objects is signalled.

Function Documentation

◆ eventCreate()

struct event* eventCreate ( bool  wakeupAll)

Creates a new kernel event object.

This function creates a new kernel event object and returns a pointer to it. Event objects can be used for multiple purposes like waiting for an event which is triggered by a different thread, or to wait on multiple objects at the same time by associating subobjects to an event.

Parameters
wakeupAllIf true all waiting objects will wake up as soon as a signal occurs, otherwise only a single one
Returns
Pointer to the kernel event object

Definition at line 92 of file event.c.