Trigger a system-wide event
#include <sys/procmgr.h> int procmgr_event_trigger( unsigned flags );
For more information, see “Event types” in the entry for procmgr_event_notify().
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The function procmgr_event_trigger() triggers a system-wide event. The event is sent to all processes that requested (via procmgr_event_notify()) to be notified of the event identified by flags.
-1 on error; any other value indicates success.
#include <sys/procmgr.h> int main ( void ) { procmgr_event_trigger( PROCMGR_EVENT_SYNC ); }
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
procmgr_event_notify(), sync()