|
B2BITS FIX Antenna HFT
1.0.17
|
The task executed by a thread in the pool. More...
#include <B2BITS_ThreadsPool.h>
Classes | |
| struct | ThreadInterrupted |
| ThreadInterrupted exception. More... | |
Public Member Functions | |
| void | interruptAll () |
| Interrupts all threads that are executing this task. More... | |
| void | interruptOne () |
| Interrupts one thread that is executing this task. More... | |
| void | join () |
| Waits until all threads finished Runnable::run() More... | |
Protected Member Functions | |
| bool | checkIfInterrupted () |
| Returns true if the thread has been interrupted. More... | |
| void | interruptionCheckpoint () |
| Throws the ThreadInterrupted exception if the thread has been interrupted. More... | |
| virtual void | run (const ThreadAttrs &threadAttrs)=0 |
| The task execution method that is run by a thread from the pool. More... | |
| Runnable () | |
| Constructor. More... | |
| virtual void | wake () |
| The optional thread wakening method. More... | |
| virtual | ~Runnable () |
| Destructor. More... | |
Friends | |
| class | ThreadsPool::Impl |
The task executed by a thread in the pool.
|
protected |
Constructor.
|
protectedvirtual |
Destructor.
|
protected |
Returns true if the thread has been interrupted.
| void Utils::ThreadsPool::Runnable::interruptAll | ( | ) |
Interrupts all threads that are executing this task.
|
protected |
Throws the ThreadInterrupted exception if the thread has been interrupted.
| The | ThreadInterrupted exception |
| void Utils::ThreadsPool::Runnable::interruptOne | ( | ) |
Interrupts one thread that is executing this task.
| void Utils::ThreadsPool::Runnable::join | ( | ) |
Waits until all threads finished Runnable::run()
|
protectedpure virtual |
The task execution method that is run by a thread from the pool.
| threadAttrs | thread attributes applied to the thread that is executing this task. |
|
protectedvirtual |
The optional thread wakening method.
It is called by the ThreadsPool to wake the thread sleeping inside the run()
|
friend |
1.8.5