Public Member Functions | Private Member Functions | Private Attributes

nitro::Thread Class Reference

High level class provides thread operating routine. More...

#include <utilities/thread.h>

Collaboration diagram for nitro::Thread:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Thread (void)
void Run (void)
virtual void ThreadFunction (void)=0
virtual ~Thread ()

Private Member Functions

void operator= (const Thread &Thread)
 Thread (const Thread &Thread)

Private Attributes

ThreadAbstraction LocalThread

Detailed Description

High level class provides thread operating routine.

Author:
Dodonov A.A.

Definition at line 44 of file thread.h.


Constructor & Destructor Documentation

nitro::Thread::Thread ( void   ) 

Constructor.

Exceptions:
nitro::exception - An exception of that type is thrown if ahy error occured.
Author:
Dodonov A.A.

Definition at line 12 of file thread.cpp.

References nitro::exception::code(), and nitro::exception::what().

        {
                try
                {
                }
                catch( nitro::exception e )
                {
                        throw( nitro::exception( std::string( "Thread::Thread( void )::" ) + e.what() , e.code() ) );
                }
                catch( ... )
                {
                        throw( nitro::exception( std::string( "Thread::Thread( void )::An error occured" ) , 0 ) );
                }
        }

Here is the call graph for this function:

nitro::Thread::~Thread (  )  [virtual]

Destructor (virtual).

Author:
Dodonov A.A.

Definition at line 60 of file thread.cpp.

        {
                try
                {
                }
                catch( nitro::exception e )
                {
                }
                catch( ... )
                {
                }
        }

nitro::Thread::Thread ( const Thread Thread  )  [inline, private]

Private copy-constructor.

Parameters:
Thread - Thread object.
Author:
Dodonov A.A.

Definition at line 152 of file thread.h.

{}


Member Function Documentation

void nitro::Thread::operator= ( const Thread Thread  )  [inline, private]

Private assign operator.

Parameters:
Thread - Thread object.
Author:
Dodonov A.A.

Definition at line 136 of file thread.h.

{}

void nitro::Thread::Run ( void   ) 

Function creates thread.

Exceptions:
nitro::exception - An exception of that type is thrown if ahy error occured.
Author:
Dodonov A.A.

Definition at line 44 of file thread.cpp.

References nitro::exception::code(), nitro::ThreadAbstraction::CreateThread(), nitro::HighLevelThreadFunction(), LocalThread, and nitro::exception::what().

        {
                try
                {
                        LocalThread.CreateThread( HighLevelThreadFunction , ( void * )this );
                }
                catch( nitro::exception e )
                {
                        throw( nitro::exception( std::string( "Thread::Run( void )::" ) + e.what() , e.code() ) );
                }
                catch( ... )
                {
                        throw( nitro::exception( std::string( "Thread::Run( void )::An error occured" ) , 0 ) );
                }
        }

Here is the call graph for this function:

virtual void nitro::Thread::ThreadFunction ( void   )  [pure virtual]

Thread function.

Exceptions:
nitro::exception - An exception of that type is thrown if ahy error occured.
Author:
Dodonov A.A.

Member Data Documentation

Low level object thread.

Author:
Dodonov A.A.

Definition at line 120 of file thread.h.

Referenced by Run().


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

Generated by  doxygen 1.6.1