B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Utils::ThreadsPoolListener Struct Referenceabstract

The ThreadsPool listener interface. More...

#include <B2BITS_ThreadsPool.h>

+ Inheritance diagram for Utils::ThreadsPoolListener:

Public Member Functions

virtual void onGoThroughThreads (ThreadAttrs &threadAttrs)=0
 This callback is called when one calls ThreadsPool::goThroughThreads(). More...
 
virtual void onNewThreadCreated (ThreadAttrs &threadAttrs)=0
 This callback is called when a new thread is created in the pool. More...
 
virtual void onThreadFinished (const ThreadAttrs &threadAttrs)=0
 This callback is called when the Runnable task of the thread from the pool is finished. More...
 

Detailed Description

The ThreadsPool listener interface.

See Also
ThreadsPool::registerListener(listener)

Member Function Documentation

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
threadAttrsThe 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
threadAttrsThe 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
threadAttrsThe attributes of the thread.