OnixS C++ CME MDP Premium Market Data Handler 5.9.0
Users' manual and API documentation
Loading...
Searching...
No Matches
FeedEngineThreadPoolListener Struct Reference

#include <OnixS/CME/MDH/FeedEngineThreadPool.h>

Public Member Functions

virtual void onFeedEngineThreadBegin (const FeedEngineThreadPool &)
virtual void onFeedEngineThreadEnd (const FeedEngineThreadPool &)
virtual bool onFeedEngineThreadIdle (const FeedEngineThreadPool &)
virtual void onFeedEngineThreadIssue (const FeedEngineThreadPool &, const Char *)

Detailed Description

Listener for thread-related events.

Members of this classes are invoked to reflect various life-time events of threads spawned and used by feed engines while processing market data.

Definition at line 38 of file FeedEngineThreadPool.h.

Member Function Documentation

◆ onFeedEngineThreadBegin()

virtual void onFeedEngineThreadBegin ( const FeedEngineThreadPool & )
inlinevirtual

Invoked by the thread before entering the processing loop.

Note
This callback allows the subscriber to perform thread-specific tuning (e.g., setting thread affinity or priority).

Definition at line 44 of file FeedEngineThreadPool.h.

◆ onFeedEngineThreadEnd()

virtual void onFeedEngineThreadEnd ( const FeedEngineThreadPool & )
inlinevirtual

Invoked by the thread when it is about to end.

Note
This callback allows the subscriber to perform thread-specific cleanup.

Definition at line 49 of file FeedEngineThreadPool.h.

◆ onFeedEngineThreadIdle()

virtual bool onFeedEngineThreadIdle ( const FeedEngineThreadPool & )
inlinevirtual

Invoked when the thread is idle.

Returns
true if the thread should sleep for some time to reduce the CPU load, and false - to resume processing without delay.

Definition at line 55 of file FeedEngineThreadPool.h.

◆ onFeedEngineThreadIssue()

virtual void onFeedEngineThreadIssue ( const FeedEngineThreadPool & ,
const Char *  )
inlinevirtual

Invoked when the thread experiences an issue while processing its tasks. Once invoked, the thread continues performing its tasks.

Definition at line 62 of file FeedEngineThreadPool.h.