High level class provides thread operating routine. More...
#include <utilities/thread.h>
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 |
High level class provides thread operating routine.
Definition at line 44 of file thread.h.
nitro::Thread::Thread | ( | void | ) |
Constructor.
nitro::exception | - An exception of that type is thrown if ahy error occured. |
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 ) ); } }
nitro::Thread::~Thread | ( | ) | [virtual] |
Destructor (virtual).
Definition at line 60 of file thread.cpp.
{ try { } catch( nitro::exception e ) { } catch( ... ) { } }
nitro::Thread::Thread | ( | const Thread & | Thread | ) | [inline, private] |
void nitro::Thread::operator= | ( | const Thread & | Thread | ) | [inline, private] |
void nitro::Thread::Run | ( | void | ) |
Function creates thread.
nitro::exception | - An exception of that type is thrown if ahy error occured. |
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 ) ); } }
virtual void nitro::Thread::ThreadFunction | ( | void | ) | [pure virtual] |
Thread function.
nitro::exception | - An exception of that type is thrown if ahy error occured. |
ThreadAbstraction nitro::Thread::LocalThread [private] |