#include <Flag.h>
◆ Flag()
sptk::Flag::Flag |
( |
bool |
startingValue = false | ) |
|
|
explicit |
Constructor
Creates flag with starting value (default false)
- Parameters
-
startingValue | Starting flag value |
◆ ~Flag()
virtual sptk::Flag::~Flag |
( |
| ) |
|
|
virtual |
◆ get()
bool sptk::Flag::get |
( |
| ) |
const |
Get the flag value
- Parameters
-
◆ operator bool()
sptk::Flag::operator bool |
( |
| ) |
const |
|
inline |
◆ operator=()
Flag & sptk::Flag::operator= |
( |
bool |
value | ) |
|
|
inline |
◆ set()
void sptk::Flag::set |
( |
bool |
value | ) |
|
Set the flag value
- Parameters
-
◆ wait_for()
bool sptk::Flag::wait_for |
( |
bool |
value, |
|
|
std::chrono::milliseconds |
timeout |
|
) |
| |
Wait until the flag has the value
- Parameters
-
value | Value to wait for |
timeout | Wait timeout |
- Returns
- true if flag received the value, or false if timeout occurs
◆ wait_until()
bool sptk::Flag::wait_until |
( |
bool |
value, |
|
|
DateTime |
timeout |
|
) |
| |
Wait until the flag has the value
- Parameters
-
value | Value to wait for |
timeout | Wait timeout |
- Returns
- true if flag received the value, or false if timeout occurs
The documentation for this class was generated from the following file: