Thrill
0.1
|
Definition at line 27 of file shared_state.hpp.
#include <shared_state.hpp>
Public Member Functions | |
SharedState (const value_type &s) | |
SharedState (const SharedState &)=delete | |
non-copyable: delete copy-constructor More... | |
value_type | operator() () |
SharedState & | operator= (const SharedState &)=delete |
non-copyable: delete assignment operator More... | |
void | set_to (const value_type &new_state) |
void | wait_for (const value_type &needed_state) |
Private Types | |
using | value_type = ValueType |
Private Attributes | |
std::condition_variable | cv_ |
condition variable More... | |
std::mutex | mutex_ |
mutex for condition variable More... | |
value_type | state_ |
current state More... | |
|
private |
Definition at line 29 of file shared_state.hpp.
|
inlineexplicit |
Definition at line 41 of file shared_state.hpp.
References SharedState< ValueType >::operator=().
|
delete |
non-copyable: delete copy-constructor
|
inline |
Definition at line 63 of file shared_state.hpp.
References SharedState< ValueType >::state_.
|
delete |
non-copyable: delete assignment operator
Referenced by SharedState< ValueType >::SharedState().
|
inline |
Definition at line 50 of file shared_state.hpp.
|
inline |
Definition at line 57 of file shared_state.hpp.
|
private |
condition variable
Definition at line 35 of file shared_state.hpp.
|
private |
mutex for condition variable
Definition at line 32 of file shared_state.hpp.
|
private |
current state
Definition at line 38 of file shared_state.hpp.
Referenced by SharedState< ValueType >::operator()().