fix8
version 1.4.0
Open Source C++ FIX Framework
|
Thread wrapper. Ctor provides T instance and specifies ptr to member to call or defaults to operator() More...
#include <thread.hpp>
Classes | |
class | _helper |
Public Member Functions | |
f8_thread (std::reference_wrapper< T > what, int(T::*method)()=&T::operator(), f8_thread_cancellation_token &(T::*cancellation_token_method)()=&T::cancellation_token) | |
virtual | ~f8_thread () |
Dtor. More... | |
int | start () |
void | request_stop () |
Public Member Functions inherited from FIX8::_f8_threadcore | |
_f8_threadcore () | |
virtual | ~_f8_threadcore () |
Dtor. More... | |
virtual int | join (int timeoutInMs=0) |
int | yield () const |
thread_id_t | get_threadid () const |
bool | operator== (const _f8_threadcore &that) const |
bool | operator!= (const _f8_threadcore &that) const |
_f8_threadcore & | operator= (const _f8_threadcore &)=delete |
Private Attributes | |
class FIX8::f8_thread::_helper | _sub |
Additional Inherited Members | |
Static Public Member Functions inherited from FIX8::_f8_threadcore | |
static thread_id_t | getid () |
Protected Member Functions inherited from FIX8::_f8_threadcore | |
template<typename T > | |
int | _start (void *sub) |
Thread wrapper. Ctor provides T instance and specifies ptr to member to call or defaults to operator()
T | class call thread entry functor |
Definition at line 245 of file thread.hpp.
|
inline |
Ctor. Reference to object, functor version.
what | reference wrapper of class with entry point |
method | reference to entry point method |
cancellation_token_method | pointer to cancellation_token |
Definition at line 280 of file thread.hpp.
|
inlinevirtual |
|
inlinevirtual |
request thread stop.
Implements FIX8::_f8_threadcore.
Definition at line 293 of file thread.hpp.
Referenced by FIX8::AsyncSocket< f8String >::quit(), FIX8::FIXReader::quit(), FIX8::AsyncSocket< f8String >::request_stop(), FIX8::Timer< FIX8::Session >::stop(), FIX8::FIXReader::stop(), and FIX8::ReliableClientSession< T >::~ReliableClientSession().
|
inlinevirtual |
start thread.
Implements FIX8::_f8_threadcore.
Definition at line 289 of file thread.hpp.
Referenced by FIX8::Logger::Logger(), FIX8::AsyncSocket< f8String >::start(), FIX8::Timer< FIX8::Session >::start(), FIX8::FIXReader::start(), and FIX8::ReliableClientSession< T >::start().
|
private |