#include <Worker.h>
Definition at line 48 of file Worker.h.
◆ Worker() [1/2]
| dev::Worker::Worker |
( |
std::string const & |
_name = "anon", |
|
|
unsigned |
_idleWaitMs = 30 |
|
) |
| |
|
inlineprotected |
◆ Worker() [2/2]
| dev::Worker::Worker |
( |
Worker && |
_m | ) |
|
|
inlineprotected |
Move-constructor.
Definition at line 54 of file Worker.h.
◆ ~Worker()
| virtual dev::Worker::~Worker |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ doneWorking()
| virtual void dev::Worker::doneWorking |
( |
| ) |
|
|
inlineprotectedvirtual |
Called when is to be stopped, just prior to thread being joined.
Reimplemented in dev::eth::Client.
Definition at line 89 of file Worker.h.
◆ doWork()
| virtual void dev::Worker::doWork |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ isWorking()
| bool dev::Worker::isWorking |
( |
| ) |
const |
|
inlineprotected |
Returns if worker thread is present.
Definition at line 76 of file Worker.h.
◆ operator=()
Move-assignment.
Definition at line 57 of file Worker.h.
◆ setName()
| void dev::Worker::setName |
( |
std::string |
_n | ) |
|
|
inlineprotected |
Allows changing worker name if work is stopped.
Definition at line 67 of file Worker.h.
◆ shouldStop()
| bool dev::Worker::shouldStop |
( |
| ) |
const |
|
inlineprotected |
◆ startedWorking()
| virtual void dev::Worker::startedWorking |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ startWorking()
| void Worker::startWorking |
( |
| ) |
|
|
protected |
◆ stopWorking()
| void Worker::stopWorking |
( |
| ) |
|
|
protected |
◆ terminate()
| void Worker::terminate |
( |
| ) |
|
|
protected |
Blocks caller into worker thread has finished.
Stop and never start again. This has to be called in the destructor of any most derived class. Otherwise the worker thread will try to lookup vptrs. It's OK to call terminate() in destructors of multiple derived classes.
Definition at line 116 of file Worker.cpp.
◆ workLoop()
| void Worker::workLoop |
( |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/ethereum-cpp-1.6.0/libdevcore/Worker.h
- /home/abuild/rpmbuild/BUILD/ethereum-cpp-1.6.0/libdevcore/Worker.cpp