![]() |
Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
|
#include <TaskManager.hpp>
Public Member Functions | |
manual_reset_event (bool signaled=false) | |
void | signal () |
Sets the event to signaled-mode. More... | |
void | reset () |
Sets the event to unsignaled-mode. More... | |
void | wait () |
Wait (block) until the event is set to signaled-mode. More... | |
Private Attributes | |
mutex | m_mutex |
A mutex used for synchronization. More... | |
condition_variable | m_cv |
A condition variable used for synchronization. More... | |
bool | m_signaled |
Wheter or not the event is currently signalled. More... | |
manual_reset_event is a synchronization-structure used for thread-synchronization. Threads can wait for a singal that is given by another thread. After the signal was given the event remains in 'signaled' state until it is resetted.
Definition at line 10 of file TaskManager.hpp.
manual_reset_event | ( | bool | signaled = false | ) |
Constructs a manual_reset_event
signaled | Wheter or not the event is currently signalled |
Definition at line 4 of file TaskManager.cpp.
void reset | ( | ) |
Sets the event to unsignaled-mode.
Definition at line 18 of file TaskManager.cpp.
void signal | ( | ) |
Sets the event to signaled-mode.
Definition at line 8 of file TaskManager.cpp.
void wait | ( | ) |
Wait (block) until the event is set to signaled-mode.
Definition at line 25 of file TaskManager.cpp.
|
private |
A condition variable used for synchronization.
Definition at line 13 of file TaskManager.hpp.
|
private |
A mutex used for synchronization.
Definition at line 12 of file TaskManager.hpp.
|
private |
Wheter or not the event is currently signalled.
Definition at line 14 of file TaskManager.hpp.