Высокоуровневый класс для управления потоками. Подробнее...
#include <utilities/thread.h>
Открытые члены | |
Thread (void) | |
void | Run (void) |
virtual void | ThreadFunction (void)=0 |
virtual | ~Thread () |
Закрытые члены | |
void | operator= (const Thread &Thread) |
Thread (const Thread &Thread) | |
Закрытые данные | |
ThreadAbstraction | LocalThread |
Высокоуровневый класс для управления потоками.
См. определение в файле thread.h строка 44
nitro::Thread::Thread | ( | void | ) |
Конструктор.
nitro::exception | - Кидает исключение этого типа при возникновении ошибки. |
См. определение в файле thread.cpp строка 12
Перекрестные ссылки nitro::exception::code() и 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] |
Деструктор (виртуальный).
См. определение в файле thread.cpp строка 60
{ 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 | ) |
Функция создания потока.
nitro::exception | - Кидает исключение этого типа при возникновении ошибки. |
См. определение в файле thread.cpp строка 44
Перекрестные ссылки nitro::exception::code(), nitro::ThreadAbstraction::CreateThread(), nitro::HighLevelThreadFunction(), LocalThread и 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] |
Функция потока.
nitro::exception | - Кидает исключение этого типа при возникновении ошибки. |
ThreadAbstraction nitro::Thread::LocalThread [private] |