Thrill
0.1
|
Definition at line 24 of file shared_state.hpp.
#include <shared_state.hpp>
Public Member Functions | |
shared_state (const value_type &s) | |
shared_state (const shared_state &)=delete | |
non-copyable: delete copy-constructor More... | |
value_type | operator() () |
shared_state & | operator= (const shared_state &)=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 shared_state More... | |
|
private |
Definition at line 26 of file shared_state.hpp.
|
inlineexplicit |
Definition at line 38 of file shared_state.hpp.
Referenced by shared_state< request_state >::shared_state().
|
delete |
non-copyable: delete copy-constructor
|
inline |
Definition at line 61 of file shared_state.hpp.
|
delete |
non-copyable: delete assignment operator
Referenced by shared_state< request_state >::shared_state().
|
inline |
Definition at line 46 of file shared_state.hpp.
Referenced by request_with_state::cancel(), request_with_state::completed(), request_queue_impl_worker::start_thread(), and request_queue_impl_worker::stop_thread().
|
inline |
Definition at line 54 of file shared_state.hpp.
Referenced by request_with_state::wait().
|
private |
condition variable
Definition at line 32 of file shared_state.hpp.
|
private |
mutex for condition variable
Definition at line 29 of file shared_state.hpp.
|
private |
current shared_state
Definition at line 35 of file shared_state.hpp.
Referenced by shared_state< request_state >::operator()().