A simple thread, derived class overloads onThread() method.
Definition at line 85 of file includes/opentelemetry/ext/http/server/socket_tools.h.

Public Member Functions | |
| Thread () | |
| Thread Constructor More... | |
| void | startThread () |
| Start Thread More... | |
| void | joinThread () |
| Join Thread More... | |
| bool | shouldTerminate () const |
| Indicates if this thread should terminate More... | |
| virtual void | onThread ()=0 |
| Must be implemented by children More... | |
| virtual | ~Thread () noexcept |
| Thread destructor More... | |
| Thread () | |
| Thread Constructor More... | |
| void | startThread () |
| Start Thread More... | |
| void | joinThread () |
| Join Thread More... | |
| bool | shouldTerminate () const |
| Indicates if this thread should terminate More... | |
| virtual void | onThread ()=0 |
| Must be implemented by children More... | |
| virtual | ~Thread () noexcept |
| Thread destructor More... | |
Data Fields | |
| std::thread | m_thread |
| std::atomic< bool > | m_terminate {false} |
|
inline |
Thread Constructor
Definition at line 95 of file includes/opentelemetry/ext/http/server/socket_tools.h.
|
inlinevirtualnoexcept |
Thread destructor
Definition at line 133 of file includes/opentelemetry/ext/http/server/socket_tools.h.
|
inline |
Thread Constructor
Definition at line 95 of file 9.2/includes/opentelemetry/ext/http/server/socket_tools.h.
|
inlinevirtualnoexcept |
Thread destructor
Definition at line 133 of file 9.2/includes/opentelemetry/ext/http/server/socket_tools.h.
|
inline |
Join Thread
Definition at line 109 of file includes/opentelemetry/ext/http/server/socket_tools.h.
References m_terminate, and m_thread.
Referenced by SocketTools::Reactor::stop().
|
inline |
Join Thread
Definition at line 109 of file 9.2/includes/opentelemetry/ext/http/server/socket_tools.h.
References m_terminate, and m_thread.
|
pure virtual |
Must be implemented by children
Implemented in SocketTools::Reactor, and SocketTools::Reactor.
Referenced by startThread().
|
pure virtual |
Must be implemented by children
Implemented in SocketTools::Reactor, and SocketTools::Reactor.
|
inline |
Indicates if this thread should terminate
Definition at line 122 of file 9.2/includes/opentelemetry/ext/http/server/socket_tools.h.
References m_terminate.
|
inline |
Indicates if this thread should terminate
Definition at line 122 of file includes/opentelemetry/ext/http/server/socket_tools.h.
References m_terminate.
Referenced by SocketTools::Reactor::onThread().
|
inline |
Start Thread
Definition at line 100 of file includes/opentelemetry/ext/http/server/socket_tools.h.
References m_terminate, m_thread, and onThread().
Referenced by SocketTools::Reactor::start().
|
inline |
Start Thread
Definition at line 100 of file 9.2/includes/opentelemetry/ext/http/server/socket_tools.h.
References m_terminate, m_thread, and onThread().
| std::atomic< bool > common::Thread::m_terminate {false} |
Definition at line 89 of file includes/opentelemetry/ext/http/server/socket_tools.h.
Referenced by joinThread(), shouldTerminate(), and startThread().
| std::thread common::Thread::m_thread |
Definition at line 87 of file includes/opentelemetry/ext/http/server/socket_tools.h.
Referenced by joinThread(), and startThread().