|
OpenWalnut
1.2.5
|
A threaded function. More...
Public Member Functions | |
| FuncType (int value) | |
| Constructor, initialize some stuff. | |
| void | operator() (std::size_t, std::size_t, WBoolFlag const &shutdown) |
| This is the actual thread function. | |
| bool | stopped () |
| Check if the thread was ordered to stop. | |
| int | getResult () |
| A method to extract the result. | |
| void | reset () |
| Reset everything. | |
Private Attributes | |
| boost::shared_ptr< int const > | m_input |
| the input data | |
| WSharedObject< int > | m_result |
| the result | |
| WSharedObject< bool > | m_stopped |
| thread stopped? | |
A threaded function.
Definition at line 43 of file WWorkerThread_test.h.
|
inline |
Constructor, initialize some stuff.
| value | An int value. |
Definition at line 51 of file WWorkerThread_test.h.
References WSharedObject< T >::getWriteTicket(), m_result, and m_stopped.
|
inline |
A method to extract the result.
Definition at line 96 of file WWorkerThread_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 69 of file WWorkerThread_test.h.
References WSharedObject< T >::getWriteTicket(), m_input, m_result, and m_stopped.
|
inline |
Reset everything.
Definition at line 104 of file WWorkerThread_test.h.
References WSharedObject< T >::getWriteTicket(), and m_result.
|
inline |
Check if the thread was ordered to stop.
Definition at line 86 of file WWorkerThread_test.h.
References WSharedObject< T >::getReadTicket(), and m_stopped.
|
private |
|
private |
the result
Definition at line 115 of file WWorkerThread_test.h.
Referenced by FuncType(), getResult(), operator()(), and reset().
|
private |
thread stopped?
Definition at line 118 of file WWorkerThread_test.h.
Referenced by FuncType(), operator()(), and stopped().
1.8.1