OMOSEventFlag class

An event flag is a synchronization object used for signaling between threads. Threads can wait on an event flag by calling wait. When some other thread signals the flag, the waiting threads proceed with their execution. The event flag is initially in the unsignaled (reset) state.

With the IBM® Rational® Rhapsody® implementation of event flags, at least one of the waiting threads is released when an event flag is reset. This is in contrast to the regular semantics in some operating systems, in which all waiting threads are released when an event flag is reset.

The operating system factory's createOMOSEventFlag method creates a new event flag.

Construction summary
~OMOSEventFlag
Destroys the OMOSEventFlag object
Method summary
getOsHandle
Retrieves the operating system ID of the thread
reset
Forces the event flag into a known state
signal
Releases a blocked thread
wait
Blocks the thread making the call until some other thread releases it by calling signal on the same event flag instance

Feedback