MPMA Framework 0.4
Public Member Functions
MPMA::BlockingObject Class Reference

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>

Inheritance diagram for MPMA::BlockingObject:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends