MPMA Framework 0.4
|
An object that can be used to block a thread until another thread signals it to resume. This is a reference counted object, so all copies of the object still refer to the same lock. More...
#include <Locks.h>
Public Member Functions | |
void | Clear () |
Marks the object as cleared, so nothing is blocking on it. | |
void | Set () |
Marks the object as set, so BlockUntilClear will block on it. | |
bool | WaitUntilClear (bool setOnReturn=false, nuint timeToWait=0xffffffff) |
Blocks and waits for as long as the object is set (or if time is non-max, then until that many milliseconds pass). Returns false only on timeout. If setOnReturn is true, the object will be Set() when the function returns. Only 1 thread should block on this, though any number may set or clear it. |
An object that can be used to block a thread until another thread signals it to resume. This is a reference counted object, so all copies of the object still refer to the same lock.