[Previous] [Contents] [Next]

procmgr_event_trigger()

Trigger a system-wide event

Synopsis:

#include <sys/procmgr.h>

int procmgr_event_trigger( unsigned flags );

Library:

libc

Description:

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.

Flags

Flags currently defined in <sys/procmgr.h> are:

PROCMGR_EVENT_SYNC
Notify filesystems to sync().

Returns:

-1 on error; any other value indicates success.

Examples:

#include <sys/procmgr.h>

int main ( void )
{   
   procmgr_event_trigger( PROCMGR_EVENT_SYNC );
}

Classification:

QNX 6

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

procmgr_event_notify()


[Previous] [Contents] [Next]