B2BITS FIX Antenna HFT  1.0.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
Engine::ThreadsPool Class Reference

ThreadsPool instance (singleton) used by the engine. More...

#include <B2BITS_FixEngineThreadsPool.h>

+ Inheritance diagram for Engine::ThreadsPool:
+ Collaboration diagram for Engine::ThreadsPool:

Static Public Member Functions

static void destroy ()
 Destroy singleton. More...
 
static void init ()
 Initialize singleton. More...
 
static ThreadsPool * singleton ()
 Returns the singleton instance of the class. More...
 

Additional Inherited Members

- Public Types inherited from Utils::ThreadsPool
typedef ThreadsPoolListener Listener
 
- Public Member Functions inherited from Utils::ThreadsPool
void goThroughThreads ()
 Goes through all active threads. More...
 
void interruptAll ()
 Interrupts all active threads. More...
 
void joinAll ()
 Joins all active threads. More...
 
void newThread (Runnable *runnable, const ThreadAttrs &threadAttrs)
 Adds a new thread to the pool to execute runnable task. More...
 
void notifyNewThreadAssigned (ThreadAttrs &threadAttrs)
 Calls ThreadsPoolListener::onNewThreadCreated(threadAttrs) for all listeners. More...
 
void registerListener (Listener *listener)
 Registers a new thread pool listener. More...
 
 ThreadsPool ()
 Constructor. More...
 
void unregisterListener (Listener *listener)
 Registers the thread pool listener. More...
 
 ~ThreadsPool ()
 Destructor. More...
 

Detailed Description

ThreadsPool instance (singleton) used by the engine.

Member Function Documentation

static void Engine::ThreadsPool::destroy ( )
static

Destroy singleton.

Called by the engine as part of destroying process.

static void Engine::ThreadsPool::init ( )
static

Initialize singleton.

Called by the engine as part of initialization process.

static ThreadsPool* Engine::ThreadsPool::singleton ( )
static

Returns the singleton instance of the class.