|
knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <ThreadPool.h>

Public Member Functions | |
| Worker (ThreadPool *thread_pool) | |
| ~Worker () | |
| Worker (const Worker &)=delete | |
| Worker (ThreadPool *thread_pool) | |
| ~Worker () | |
| Worker (const Worker &)=delete | |
Protected Member Functions | |
| void | run () |
| void | run () |
Protected Attributes | |
| ThreadPool * | threadPool_ |
| std::atomic< bool > | isTerminated_ |
| std::atomic< bool > | hasTerminateRequest_ |
| std::thread | thread_ |
Friends | |
| class | ThreadPool |
A worker thread that pulls work goals from the work queue of a thread pool.
Definition at line 65 of file ThreadPool.h.
|
explicit |
Definition at line 101 of file ThreadPool.cpp.
| ThreadPool::Worker::~Worker | ( | ) |
Definition at line 108 of file ThreadPool.cpp.
|
delete |
Cannot be copy-assigned.
|
explicit |
| knowrob::ThreadPool::Worker::~Worker | ( | ) |
|
delete |
Cannot be copy-assigned.
|
protected |
Definition at line 113 of file ThreadPool.cpp.
|
protected |
|
friend |
Definition at line 86 of file ThreadPool.h.
|
protected |
Definition at line 80 of file ThreadPool.h.
|
protected |
Definition at line 79 of file ThreadPool.h.
|
protected |
Definition at line 82 of file ThreadPool.h.
|
protected |
Definition at line 77 of file ThreadPool.h.