OpenWalnut
1.5.0dev
|
A threaded function. More...
Public Member Functions | |
FuncType (int value) | |
Constructor, initialize some stuff. More... | |
void | operator() (std::size_t, std::size_t, WBoolFlag const &shutdown) |
This is the actual thread function. More... | |
bool | stopped () |
Check if the thread was ordered to stop. More... | |
int | getResult () |
A method to extract the result. More... | |
void | reset () |
Reset everything. More... | |
Private Attributes | |
std::shared_ptr< int const > | m_input |
the input data More... | |
WSharedObject< int > | m_result |
the result More... | |
WSharedObject< bool > | m_stopped |
thread stopped? More... | |
A threaded function.
Definition at line 46 of file WThreadedFunction_test.h.
|
inline |
Constructor, initialize some stuff.
value | An int value. |
Definition at line 54 of file WThreadedFunction_test.h.
References WSharedObject< T >::getWriteTicket(), m_result, and m_stopped.
|
inline |
A method to extract the result.
Definition at line 100 of file WThreadedFunction_test.h.
References WSharedObject< T >::getReadTicket(), and m_result.
|
inline |
This is the actual thread function.
shutdown | A flag indicating the thread is supposed to stop. |
Definition at line 72 of file WThreadedFunction_test.h.
References WSharedObject< T >::getWriteTicket(), m_input, m_result, and m_stopped.
|
inline |
Reset everything.
Definition at line 108 of file WThreadedFunction_test.h.
References WSharedObject< T >::getWriteTicket(), and m_result.
|
inline |
Check if the thread was ordered to stop.
Definition at line 90 of file WThreadedFunction_test.h.
References WSharedObject< T >::getReadTicket(), and m_stopped.
|
private |
|
private |
the result
Definition at line 118 of file WThreadedFunction_test.h.
Referenced by FuncType(), getResult(), operator()(), and reset().
|
private |
thread stopped?
Definition at line 121 of file WThreadedFunction_test.h.
Referenced by FuncType(), operator()(), and stopped().