next up previous contents index
Next: 6.2.1 wait: Wait on Up: 6 Synchronization Interfaces Previous: 6.1.2 lock: Unlock a

6.2 oskit_condvar: Condition variable interface

 

The oskit_condvar COM interface allows components to wait for conditions. The interface is intended to be generic so that components do not need to know the specifics of any particular thread system. A condition is typically combined with an oskit_lock object to facilitate building monitor type objects. Attempting to wait on a condition without supplying a locked oskit_lock object results in undefined behavior. The oskit_lock COM interface inherits from oskit_iunknown, and has the following additional methods:

wait
Wait on a condition variable.
signal
Signal a condition variable.
broadcast
Broadcast a condition variable.





Utah Flux Research Group