FBX C++ API Reference
|
#include <fbxsync.h>
A gate thread locking mechanism is very similar to a semaphore, except that when it is opened, any further call to wait will not wait until it is closed.
It is generally used to block multiple threads until one of them open the gate to release them all.
Public Member Functions | |
FbxGate () | |
Constructor. More... | |
virtual | ~FbxGate () |
Destructor. More... | |
void | Open () |
Open the gate to release all threads waiting. More... | |
void | Close () |
Close the gate so that the next time a thread call Wait() it will be blocked. More... | |
bool | IsOpen () |
Check if the gate is open. More... | |
bool | Wait () |
Wait indefinitely until the gate open. More... | |
FbxGate | ( | ) |
Constructor.
|
virtual |
Destructor.
void Open | ( | ) |
Open the gate to release all threads waiting.
void Close | ( | ) |
Close the gate so that the next time a thread call Wait() it will be blocked.
bool IsOpen | ( | ) |
Check if the gate is open.
bool Wait | ( | ) |
Wait indefinitely until the gate open.