fix8
version 1.4.0
Open Source C++ FIX Framework
|
pthread wrapper abstract base More...
#include <thread.hpp>
Public Member Functions | |
_f8_threadcore () | |
virtual | ~_f8_threadcore () |
Dtor. More... | |
virtual int | start ()=0 |
virtual void | request_stop ()=0 |
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 |
Static Public Member Functions | |
static thread_id_t | getid () |
Protected Member Functions | |
template<typename T > | |
int | _start (void *sub) |
Static Private Member Functions | |
template<typename T > | |
static void * | _run (void *what) |
Private Attributes | |
pthread_attr_t | _attr |
pthread_t | _tid |
pthread wrapper abstract base
Definition at line 65 of file thread.hpp.
|
inline |
|
inlinevirtual |
|
inlinestaticprivate |
Definition at line 76 of file thread.hpp.
|
inlineprotected |
Definition at line 84 of file thread.hpp.
|
inline |
Get the thread's thread ID.
Definition at line 157 of file thread.hpp.
References _tid.
Referenced by join(), operator!=(), and operator==().
|
inlinestatic |
Get the thread's thread ID. Static version.
Definition at line 168 of file thread.hpp.
Referenced by join().
|
inlinevirtual |
Join the thread.
Definition at line 126 of file thread.hpp.
References get_threadid(), and getid().
Referenced by FIX8::AsyncSocket< f8String >::join(), FIX8::Timer< FIX8::Session >::join(), FIX8::FIXReader::quit(), FIX8::Logger::stop(), ~_f8_threadcore(), and FIX8::ReliableClientSession< T >::~ReliableClientSession().
|
inline |
f8_thread inequivalence operator.
that | the other thread id |
Definition at line 192 of file thread.hpp.
References _tid, and get_threadid().
|
delete |
|
inline |
f8_thread equivalence operator.
that | the other thread id |
Definition at line 180 of file thread.hpp.
References _tid, and get_threadid().
|
pure virtual |
request thread stop.
Implemented in FIX8::f8_thread< T >, FIX8::f8_thread< FIX8::AsyncSocket >, FIX8::f8_thread< FIX8::ReliableClientSession< T > >, FIX8::f8_thread< FIX8::FIXReader >, FIX8::f8_thread< FIX8::Logger >, and FIX8::f8_thread< FIX8::Timer >.
|
pure virtual |
start thread.
Implemented in FIX8::f8_thread< T >, FIX8::f8_thread< FIX8::AsyncSocket >, FIX8::f8_thread< FIX8::ReliableClientSession< T > >, FIX8::f8_thread< FIX8::FIXReader >, FIX8::f8_thread< FIX8::Logger >, and FIX8::f8_thread< FIX8::Timer >.
|
inline |
|
private |
Definition at line 68 of file thread.hpp.
|
private |
Definition at line 69 of file thread.hpp.
Referenced by get_threadid(), operator!=(), and operator==().