library of assembled shared sources |
http://lass.cocamware.com |
#include <thread_fun.h>
Public Types | |
enum | { anyProcessor = unsigned(-1) } |
Public Member Functions | |
ThreadFun (const Callback0 &fun, ThreadKind kind=threadDetached) | |
void | run () |
void | join () |
void | bind (unsigned processor) |
bind this thread to a processor (this as in this-pointer) | |
Static Public Member Functions | |
static void | sleep (unsigned long milliseconds) |
static void | yield () |
static void | bindCurrent (unsigned processor) |
bind current thread to a processor (current as in callee's context) | |
Private Member Functions | |
void | doRun () |
Private Attributes | |
Callback0 | fun_ |
Friends | |
class | impl::ThreadInternal |
Definition at line 126 of file thread_fun.h.
anonymous enum [inherited] |
anyProcessor | argument for Thread::bind to unbind the thread so it runs on any processor |
ThreadFun::ThreadFun | ( | const Callback0 & | fun, | |
ThreadKind | kind = threadDetached | |||
) |
Definition at line 51 of file thread_fun.cpp.
void ThreadFun::doRun | ( | ) | [private, virtual] |
void lass::util::Thread::run | ( | ) | [inherited] |
Definition at line 214 of file thread.cpp.
References LASS_ASSERT, lass::util::Thread::pimpl_, and lass::util::impl::ThreadInternal::run().
Referenced by lass::util::ThreadPool< TaskType, ConsumerType, IdlePolicy, ParticipationPolicy >::startThreads().
void lass::util::Thread::join | ( | ) | [inherited] |
Definition at line 220 of file thread.cpp.
References lass::util::impl::ThreadInternal::join(), LASS_ASSERT, and lass::util::Thread::pimpl_.
Referenced by lass::util::ThreadPool< TaskType, ConsumerType, IdlePolicy, ParticipationPolicy >::stopThreads().
void lass::util::Thread::bind | ( | unsigned | processor | ) | [inherited] |
bind this thread to a processor (this as in this-pointer)
Definition at line 228 of file thread.cpp.
References lass::util::impl::ThreadInternal::bind(), LASS_ASSERT, and lass::util::Thread::pimpl_.
Referenced by lass::util::ThreadPool< TaskType, ConsumerType, IdlePolicy, ParticipationPolicy >::startThreads().
void lass::util::Thread::sleep | ( | unsigned long | milliseconds | ) | [static, inherited] |
Definition at line 234 of file thread.cpp.
void lass::util::Thread::yield | ( | ) | [static, inherited] |
Definition at line 239 of file thread.cpp.
void lass::util::Thread::bindCurrent | ( | unsigned | processor | ) | [static, inherited] |
bind current thread to a processor (current as in callee's context)
Definition at line 246 of file thread.cpp.
Referenced by lass::util::SelfParticipating< TaskType, ConsumerType, IdlePolicy >::SelfParticipating(), and lass::util::SelfParticipating< TaskType, ConsumerType, IdlePolicy >::~SelfParticipating().
friend class impl::ThreadInternal [friend, inherited] |
Callback0 lass::util::ThreadFun::fun_ [private] |
Generated on Mon Nov 10 14:22:17 2008 for Library of Assembled Shared Sources by 1.5.7.1 |