ARC SDK
|
Simple triggered condition. More...
#include <arc/Thread.h>
Public Member Functions | |
void | lock (void) |
Acquire semaphor. More... | |
void | unlock (void) |
Release semaphor. More... | |
void | signal (void) |
void | signal_nonblock (void) |
Signal about condition without using semaphor. More... | |
void | broadcast (void) |
Signal about condition to all waiting threads. More... | |
void | wait (void) |
Wait for condition. More... | |
void | wait_nonblock (void) |
Wait for condition without using semaphor. More... | |
bool | wait (int t) |
Wait for condition no longer than t milliseconds. More... | |
void | reset (void) |
Reset object to initial state. More... | |
void | forceReset (void) |
This method is meant to be used only after fork. More... | |
Simple triggered condition.
Provides condition and semaphor objects in one element.
|
inline |
Signal about condition to all waiting threads.
If there are no waiting threads, it works like signal().
|
inline |
This method is meant to be used only after fork.
It resets state of all internal locks and variables.
|
inline |
Acquire semaphor.
|
inline |
Reset object to initial state.
|
inline |
Signal about condition. This overrides broadcast().
|
inline |
Signal about condition without using semaphor.
Call it only with lock acquired.
|
inline |
Release semaphor.
|
inline |
Wait for condition.
|
inline |
Wait for condition no longer than t milliseconds.
|
inline |
Wait for condition without using semaphor.
Call it only with lock acquired.