Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
OSlaveThread Class Reference

This class defines a thread for running tasks in a threads collection. Slave thread for the threads collection. More...

#include <threading.h>

Inheritance diagram for OSlaveThread:
Inheritance graph
[legend]
Collaboration diagram for OSlaveThread:
Collaboration graph
[legend]

Public Member Functions

 OSlaveThread (OThreadPool *pool)
 Build a slave thread for a threads collection. More...
 
 ~OSlaveThread ()
 Destroy the slave thread; wait for the end of the thread. More...
 
 OSlaveThread (OThreadPool *pool)
 Build a slave thread for a threads collection. More...
 
 ~OSlaveThread ()
 Destroy the slave thread; wait for the end of the thread. More...
 

Public Attributes

bool _bToEnd
 

Protected Member Functions

void run ()
 Run a waiting task. More...
 
void run ()
 

Protected Attributes

OThreadPool_pool
 Pointer on the parent threads collection. More...
 

Detailed Description

This class defines a thread for running tasks in a threads collection. Slave thread for the threads collection.

Author
Projet_Tympan

Definition at line 131 of file threading.h.

Constructor & Destructor Documentation

◆ OSlaveThread() [1/2]

OSlaveThread::OSlaveThread ( OThreadPool pool)

Build a slave thread for a threads collection.

Definition at line 20 of file threading.cpp.

◆ ~OSlaveThread() [1/2]

OSlaveThread::~OSlaveThread ( )

Destroy the slave thread; wait for the end of the thread.

Definition at line 25 of file threading.cpp.

◆ OSlaveThread() [2/2]

OSlaveThread::OSlaveThread ( OThreadPool pool)

Build a slave thread for a threads collection.

◆ ~OSlaveThread() [2/2]

OSlaveThread::~OSlaveThread ( )

Destroy the slave thread; wait for the end of the thread.

Member Function Documentation

◆ run() [1/2]

void OSlaveThread::run ( )
protected

Run a waiting task.

Definition at line 30 of file threading.cpp.

◆ run() [2/2]

void OSlaveThread::run ( )
protected

Member Data Documentation

◆ _bToEnd

bool OSlaveThread::_bToEnd

Definition at line 140 of file threading.h.

◆ _pool

OThreadPool * OSlaveThread::_pool
protected

Pointer on the parent threads collection.

Definition at line 144 of file threading.h.


The documentation for this class was generated from the following files: