library of assembled shared sources

http://lass.cocamware.com

lass::util::impl::ThreadInternal Class Reference

Inheritance diagram for lass::util::impl::ThreadInternal:

Inheritance graph
[legend]
Collaboration diagram for lass::util::impl::ThreadInternal:

Collaboration graph
[legend]

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

Threadthread_
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_

Detailed Description

Definition at line 317 of file thread_posix.inl.


Constructor & Destructor Documentation

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.


Member Function Documentation

void lass::util::impl::ThreadInternal::run (  )  [inline]

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]

static void lass::util::impl::ThreadInternal::yield (  )  [inline, static]

Definition at line 413 of file thread_posix.inl.

References LASS_ENFORCE_CLIB.

static void lass::util::impl::ThreadInternal::bindCurrent ( size_t  processor  )  [inline, static]

Definition at line 418 of file thread_posix.inl.

References lass::util::impl::bindThread().

static void* lass::util::impl::ThreadInternal::staticThreadStart ( void *  iPimpl  )  [inline, static]

void lass::util::impl::ThreadInternal::run (  )  [inline]

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]

Definition at line 600 of file thread_win32.inl.

References lass::util::impl::bindThread().

static unsigned __stdcall lass::util::impl::ThreadInternal::startThread ( void *  iPimpl  )  [inline, static]

static void lass::util::impl::ThreadInternal::onThreadDetach (  )  [inline, static]

void lass::util::NonCopyable::swap ( NonCopyable  )  [inline, protected, inherited]

Definition at line 60 of file non_copyable.h.

Referenced by lass::io::Image::readLine().


Field Documentation

Definition at line 463 of file thread_posix.inl.

Referenced by staticThreadStart().

Definition at line 464 of file thread_posix.inl.

Referenced by bind(), join(), and run().

Definition at line 465 of file thread_posix.inl.

Referenced by run(), and staticThreadStart().

Definition at line 466 of file thread_posix.inl.

Referenced by join(), and staticThreadStart().

Definition at line 467 of file thread_posix.inl.

Referenced by bind(), and staticThreadStart().

Definition at line 468 of file thread_posix.inl.

Referenced by join(), and staticThreadStart().

Definition at line 469 of file thread_posix.inl.

Referenced by join(), run(), and staticThreadStart().

Definition at line 650 of file thread_win32.inl.

Definition at line 653 of file thread_win32.inl.

Referenced by run().

Definition at line 654 of file thread_win32.inl.

Referenced by run().

Definition at line 655 of file thread_win32.inl.

Definition at line 656 of file thread_win32.inl.


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

Generated on Mon Nov 10 14:22:20 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo