Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
cat::Thread Class Reference

#include <Thread.hpp>

Inheritance diagram for cat::Thread:

List of all members.

Public Member Functions

void AbortThread ()
bool StartThread (void *param=0)
 Thread ()
CAT_INLINE bool ThreadRunning ()
bool WaitForThread (int milliseconds=-1)
virtual CAT_INLINE ~Thread ()

Protected Member Functions

virtual bool ThreadFunction (void *param)=0

Static Protected Member Functions

static void * ThreadWrapper (void *this_object)

Protected Attributes

pthread_t _thread
volatile bool _thread_running
void * caller_param

Detailed Description

Definition at line 48 of file Thread.hpp.


Constructor & Destructor Documentation

cat::Thread::Thread ( )
virtual CAT_INLINE cat::Thread::~Thread ( ) [inline, virtual]

Definition at line 74 of file Thread.hpp.

{}

Member Function Documentation

void cat::Thread::AbortThread ( )
bool cat::Thread::StartThread ( void *  param = 0)
virtual bool cat::Thread::ThreadFunction ( void *  param) [protected, pure virtual]
CAT_INLINE bool cat::Thread::ThreadRunning ( ) [inline]

Definition at line 67 of file Thread.hpp.

References _thread_running.

{ return _thread_running; }
static void* cat::Thread::ThreadWrapper ( void *  this_object) [static, protected]
bool cat::Thread::WaitForThread ( int  milliseconds = -1)

Member Data Documentation

pthread_t cat::Thread::_thread [protected]

Definition at line 58 of file Thread.hpp.

volatile bool cat::Thread::_thread_running [protected]

Definition at line 52 of file Thread.hpp.

Referenced by ThreadRunning().

void* cat::Thread::caller_param [protected]

Definition at line 51 of file Thread.hpp.


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net