The ThreadsPool listener interface.
More...
#include <B2BITS_ThreadsPool.h>
The ThreadsPool listener interface.
- See Also
- ThreadsPool::registerListener(listener)
virtual void Utils::ThreadsPoolListener::onGoThroughThreads |
( |
ThreadAttrs & |
threadAttrs | ) |
|
|
pure virtual |
This callback is called when one calls ThreadsPool::goThroughThreads().
It is called using the caller thread.
- Parameters
-
threadAttrs | The thread attributes applied by the pool to the thread. The callee can change the thread affinity mask there. |
virtual void Utils::ThreadsPoolListener::onNewThreadCreated |
( |
ThreadAttrs & |
threadAttrs | ) |
|
|
pure virtual |
This callback is called when a new thread is created in the pool.
It is called using the new thread.
- Parameters
-
threadAttrs | The thread attributes that are applied by the pool to the thread. The callee can configure it in the callback if required. |
virtual void Utils::ThreadsPoolListener::onThreadFinished |
( |
const ThreadAttrs & |
threadAttrs | ) |
|
|
pure virtual |
This callback is called when the Runnable task of the thread from the pool is finished.
It is called using the thread that was executing the task.
- Parameters
-
threadAttrs | The attributes of the thread. |