|
pstore2
|
#include <heartbeat.hpp>
Public Member Functions | |
| worker_thread (worker_thread const &)=delete | |
| worker_thread (worker_thread &&)=delete | |
| worker_thread & | operator= (worker_thread const &)=delete |
| worker_thread & | operator= (worker_thread &&)=delete |
| void | attach (heartbeat::key_type key, callback cb) |
| void | detach (heartbeat::key_type key) |
| void | run () noexcept |
| This is the thread entry point. | |
| void | step () const |
| Executes a single invocation of each of the attached callbacks. More... | |
| void | stop () noexcept |
| Instructs the worker thread to exit on its next iteration. More... | |
| void pstore::heartbeat::worker_thread::step | ( | ) | const |
Executes a single invocation of each of the attached callbacks.
This is exposed for unit testing.
|
noexcept |
Instructs the worker thread to exit on its next iteration.
The condition variable is signalled to wait up the thread.
1.8.13