Wefts::OSThreadPthread Class Reference
[OS Threading Level Abstraction.]

#include <wefts_os_pthread.h>

Inheritance diagram for Wefts::OSThreadPthread:

Inheritance graph
[legend]
Collaboration diagram for Wefts::OSThreadPthread:

Collaboration graph
[legend]
List of all members.

Detailed Description

Wraps Posix threads.

See also:
OS Threading Abstraction (and Independence) Layer


Public Member Functions

 OSThreadPthread ()
 OSThreadPthread (bool val)
virtual bool priority (OSPriority prio_class, int boost=0)
bool start (void *(*func)(void *), void *data)
bool stop ()
void * join () throw ( NotJoinableError )
int enableCancel ()
int disableCancel ()
bool setCancelState (int state)
virtual void * osRun (void *(*runner)(void *), void *data, void(*cleaner)(void *))
void testCancel ()
void setCancelDeferred ()
void detach ()
void exit (void *data)
bool same () const
bool equal (const OSThreadBase &th) const
virtual bool setCurrent ()
virtual void invalidate ()

Private Attributes

pthread_t m_thid
 posix thread id

bool m_valid
 true if this thread is considered valid


Constructor & Destructor Documentation

Wefts::OSThreadPthread::OSThreadPthread  )  [inline]
 

Wefts::OSThreadPthread::OSThreadPthread bool  val  )  [inline]
 


Member Function Documentation

void Wefts::OSThreadPthread::detach  )  [inline, virtual]
 

Implements Wefts::OSThreadBase.

int Wefts::OSThreadPthread::disableCancel  )  [inline, virtual]
 

Implements Wefts::OSThreadBase.

int Wefts::OSThreadPthread::enableCancel  )  [inline, virtual]
 

Implements Wefts::OSThreadBase.

bool Wefts::OSThreadPthread::equal const OSThreadBase th  )  const [inline, virtual]
 

Implements Wefts::OSThreadBase.

void Wefts::OSThreadPthread::exit void *  data  )  [inline, virtual]
 

Implements Wefts::OSThreadBase.

virtual void Wefts::OSThreadPthread::invalidate  )  [inline, virtual]
 

Implements Wefts::OSThreadBase.

void* Wefts::OSThreadPthread::join  )  throw ( NotJoinableError ) [inline, virtual]
 

Implements Wefts::OSThreadBase.

virtual void* Wefts::OSThreadPthread::osRun void *(*  runner)(void *),
void *  data,
void(*  cleaner)(void *)
[inline, virtual]
 

Implements Wefts::OSThreadBase.

virtual bool Wefts::OSThreadPthread::priority OSPriority  prio_class,
int  boost = 0
[virtual]
 

Implements Wefts::OSThreadBase.

bool Wefts::OSThreadPthread::same  )  const [inline, virtual]
 

Implements Wefts::OSThreadBase.

void Wefts::OSThreadPthread::setCancelDeferred  )  [inline, virtual]
 

Implements Wefts::OSThreadBase.

bool Wefts::OSThreadPthread::setCancelState int  state  )  [inline, virtual]
 

Implements Wefts::OSThreadBase.

virtual bool Wefts::OSThreadPthread::setCurrent  )  [inline, virtual]
 

Implements Wefts::OSThreadBase.

bool Wefts::OSThreadPthread::start void *(*  func)(void *),
void *  data
[inline, virtual]
 

Implements Wefts::OSThreadBase.

bool Wefts::OSThreadPthread::stop  )  [inline, virtual]
 

Implements Wefts::OSThreadBase.

void Wefts::OSThreadPthread::testCancel  )  [inline, virtual]
 

Implements Wefts::OSThreadBase.


Member Data Documentation

pthread_t Wefts::OSThreadPthread::m_thid [private]
 

posix thread id

bool Wefts::OSThreadPthread::m_valid [private]
 

true if this thread is considered valid


The documentation for this class was generated from the following file:
Generated on Tue Oct 5 14:57:02 2004 for Wefts by doxygen 1.3.7