COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ThreadManager Class Reference

#include <ThreadManager.hpp>

Public Member Functions

NetworkThreadnetwork ()
 
TreeThreadtree ()
 

Static Public Member Functions

static ThreadManagerinstance ()
 

Private Member Functions

 ThreadManager ()
 
 ~ThreadManager ()
 

Private Attributes

NetworkThreadm_network_thread
 The network thread. More...
 
TreeThreadm_tree_thread
 

Detailed Description

Class the manages the client threads. This class is a singleton and threads it provides should never be deleted manually.

Note
Since this class is located in the Core part of the client application, it does not provide access to the Gui thread. This thread can be accessed by calling qApp->thread() after the QApplication object has been initialized.
Author
Quentin Gasper.

Definition at line 29 of file ThreadManager.hpp.

Constructor & Destructor Documentation

ThreadManager ( )
private

Constructor. Builds all manages threads.

Definition at line 30 of file ThreadManager.cpp.

~ThreadManager ( )
private

Destructor. All running threads are exited before they are destroyed.

Definition at line 39 of file ThreadManager.cpp.

Member Function Documentation

ThreadManager & instance ( )
static
Returns
Returns the unique instance of this class.

Definition at line 22 of file ThreadManager.cpp.

NetworkThread & network ( )
Returns
Returns a reference to the network thread.

Definition at line 47 of file ThreadManager.cpp.

TreeThread & tree ( )
Returns
Returns a reference to the tree thread.

Definition at line 54 of file ThreadManager.cpp.

Member Data Documentation

NetworkThread* m_network_thread
private

The network thread.

Definition at line 55 of file ThreadManager.hpp.

TreeThread* m_tree_thread
private

Definition at line 57 of file ThreadManager.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin