![]() |
fix8
version 1.4.0
Open Source C++ FIX Framework
|
Thread cancellation token. More...
#include <thread.hpp>
Public Types | |
| enum | ThreadState { Unknown, Running, Stopping, Stopped } |
| Thread state enumerations. More... | |
Public Member Functions | |
| f8_thread_cancellation_token () | |
| ctor More... | |
| bool | stop_requested () const |
| void | request_stop () |
| Tell the thread to stop. More... | |
| operator bool () const | |
| bool | operator! () const |
| int | thread_state () const |
| void | thread_state (ThreadState state) |
Private Attributes | |
| f8_atomic< int > | _stop_requested |
| f8_atomic< int > | _thread_state |
Thread cancellation token.
Definition at line 206 of file thread.hpp.
Thread state enumerations.
| Enumerator | |
|---|---|
| Unknown | |
| Running | |
| Stopping | |
| Stopped | |
Definition at line 230 of file thread.hpp.
|
inline |
ctor
Definition at line 212 of file thread.hpp.
|
inline |
check if a stop has been requested
Definition at line 223 of file thread.hpp.
|
inline |
check if a stop has been requested
Definition at line 227 of file thread.hpp.
|
inline |
Tell the thread to stop.
Definition at line 219 of file thread.hpp.
Referenced by FIX8::Logger::stop().
|
inline |
check if a stop has been requested
Definition at line 216 of file thread.hpp.
|
inline |
Get the current thread state
Definition at line 234 of file thread.hpp.
|
inline |
Set the thread state
| state | state to set to |
Definition at line 238 of file thread.hpp.
|
private |
Definition at line 208 of file thread.hpp.
|
private |
Definition at line 208 of file thread.hpp.