library of assembled shared sources |
http://lass.cocamware.com |
Public Member Functions | |
ThreadInternal (Thread &iThread, ThreadKind iKind, const char *) | |
~ThreadInternal () | |
void | run () |
run thread. | |
void | join () |
void | bind (size_t processor) |
ThreadInternal (Thread &iThread, ThreadKind iKind, const char *name) | |
~ThreadInternal () | |
void | run () |
run thread. | |
void | join () |
void | bind (unsigned processor) |
Static Public Member Functions | |
static void | sleep (unsigned long iMilliSeconds) |
static void | yield () |
static void | bindCurrent (size_t processor) |
static void * | staticThreadStart (void *iPimpl) |
static void | sleep (unsigned long iMilliSeconds) |
static void | yield () |
static void | bindCurrent (unsigned processor) |
static unsigned __stdcall | startThread (void *iPimpl) |
static void | onThreadDetach () |
Private Member Functions | |
void | swap (NonCopyable &) |
Private Attributes | |
Thread & | thread_ |
pthread_t | handle_ |
Condition | runCondition_ |
std::auto_ptr < experimental::RemoteExceptionBase > | error_ |
pid_t | tid_ |
volatile bool | isJoinable_ |
volatile bool | isCreated_ |
HANDLE | handle_ |
const char * | name_ |
unsigned | id_ |
bool | isJoinable_ |
bool | isCreated_ |
Definition at line 317 of file thread_posix.inl.
lass::util::impl::ThreadInternal::ThreadInternal | ( | Thread & | iThread, | |
ThreadKind | iKind, | |||
const char * | ||||
) | [inline] |
Definition at line 321 of file thread_posix.inl.
lass::util::impl::ThreadInternal::~ThreadInternal | ( | ) | [inline] |
Definition at line 329 of file thread_posix.inl.
lass::util::impl::ThreadInternal::ThreadInternal | ( | Thread & | iThread, | |
ThreadKind | iKind, | |||
const char * | name | |||
) | [inline] |
Definition at line 521 of file thread_win32.inl.
lass::util::impl::ThreadInternal::~ThreadInternal | ( | ) | [inline] |
Definition at line 529 of file thread_win32.inl.
void lass::util::impl::ThreadInternal::run | ( | ) | [inline] |
run thread.
Definition at line 335 of file thread_posix.inl.
References handle_, isCreated_, LASS_ENFORCE_CLIB_RC, LASS_THROW, runCondition_, staticThreadStart(), and lass::util::Condition::wait().
Referenced by lass::util::Thread::run().
void lass::util::impl::ThreadInternal::join | ( | ) | [inline] |
Definition at line 349 of file thread_posix.inl.
References error_, handle_, isCreated_, isJoinable_, and LASS_THROW.
Referenced by lass::util::Thread::join().
void lass::util::impl::ThreadInternal::bind | ( | size_t | processor | ) | [inline] |
Definition at line 366 of file thread_posix.inl.
References lass::util::impl::bindThread(), and tid_.
Referenced by lass::util::Thread::bind().
static void lass::util::impl::ThreadInternal::sleep | ( | unsigned long | iMilliSeconds | ) | [inline, static] |
Definition at line 371 of file thread_posix.inl.
References LASS_ASSERT, lass::util::impl::lass_errno(), lass::util::impl::lass_strerror(), and LASS_THROW.
static void lass::util::impl::ThreadInternal::yield | ( | ) | [inline, static] |
static void lass::util::impl::ThreadInternal::bindCurrent | ( | size_t | processor | ) | [inline, static] |
static void* lass::util::impl::ThreadInternal::staticThreadStart | ( | void * | iPimpl | ) | [inline, static] |
Definition at line 424 of file thread_posix.inl.
References lass::util::experimental::RemoteExceptionBase::clone(), lass::util::Thread::doRun(), error_, isCreated_, isJoinable_, LASS_ASSERT, LASS_UTIL_THREAD_POSIX_CATCH_AND_WRAP, runCondition_, lass::util::Condition::signal(), thread_, and tid_.
Referenced by run().
void lass::util::impl::ThreadInternal::run | ( | ) | [inline] |
run thread.
Definition at line 535 of file thread_win32.inl.
References handle_, id_, isCreated_, lass::util::impl::lass_errno(), lass::util::impl::lass_strerror(), LASS_THROW, name_, runCondition_, lass::util::impl::setThreadName(), startThread(), and lass::util::Condition::wait().
void lass::util::impl::ThreadInternal::join | ( | ) | [inline] |
Definition at line 554 of file thread_win32.inl.
References error_, handle_, isCreated_, isJoinable_, and LASS_THROW.
void lass::util::impl::ThreadInternal::bind | ( | unsigned | processor | ) | [inline] |
Definition at line 585 of file thread_win32.inl.
References lass::util::impl::bindThread(), and handle_.
static void lass::util::impl::ThreadInternal::sleep | ( | unsigned long | iMilliSeconds | ) | [inline, static] |
Definition at line 590 of file thread_win32.inl.
static void lass::util::impl::ThreadInternal::yield | ( | ) | [inline, static] |
Definition at line 595 of file thread_win32.inl.
static void lass::util::impl::ThreadInternal::bindCurrent | ( | unsigned | processor | ) | [inline, static] |
static unsigned __stdcall lass::util::impl::ThreadInternal::startThread | ( | void * | iPimpl | ) | [inline, static] |
Definition at line 606 of file thread_win32.inl.
References lass::util::experimental::RemoteExceptionBase::clone(), LASS_ASSERT, and LASS_UTIL_THREAD_WIN32_CATCH_AND_WRAP.
Referenced by run().
static void lass::util::impl::ThreadInternal::onThreadDetach | ( | ) | [inline, static] |
Definition at line 642 of file thread_win32.inl.
References lass::util::impl::ThreadLocalStorageInternal::destructLocals().
Referenced by lassOnThreadCallback().
void lass::util::NonCopyable::swap | ( | NonCopyable & | ) | [inline, protected, inherited] |
Thread & lass::util::impl::ThreadInternal::thread_ [private] |
pthread_t lass::util::impl::ThreadInternal::handle_ [private] |
std::auto_ptr< experimental::RemoteExceptionBase > lass::util::impl::ThreadInternal::error_ [private] |
pid_t lass::util::impl::ThreadInternal::tid_ [private] |
volatile bool lass::util::impl::ThreadInternal::isJoinable_ [private] |
volatile bool lass::util::impl::ThreadInternal::isCreated_ [private] |
Definition at line 469 of file thread_posix.inl.
Referenced by join(), run(), and staticThreadStart().
HANDLE lass::util::impl::ThreadInternal::handle_ [private] |
Definition at line 650 of file thread_win32.inl.
const char* lass::util::impl::ThreadInternal::name_ [private] |
unsigned lass::util::impl::ThreadInternal::id_ [private] |
bool lass::util::impl::ThreadInternal::isJoinable_ [private] |
Definition at line 655 of file thread_win32.inl.
bool lass::util::impl::ThreadInternal::isCreated_ [private] |
Definition at line 656 of file thread_win32.inl.
Generated on Mon Nov 10 14:22:20 2008 for Library of Assembled Shared Sources by 1.5.7.1 |