Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ThreadDummyImpl Class Reference

A fake thread implementation for single-threaded applications. More...

#include <threadDummyImpl.h>

List of all members.

Public Member Functions

 ThreadDummyImpl (Thread *parent_obj)
 ~ThreadDummyImpl ()
bool start (ThreadPriority priority, bool global, bool joinable)
void join ()
int atomic_inc (int &var)
int atomic_dec (int &var)
int atomic_set (int &var, int new_value)

Static Public Member Functions

void prepare_for_exit ()
Threadget_current_thread ()
bool is_threading_supported ()
void sleep (double seconds)


Detailed Description

A fake thread implementation for single-threaded applications.

This simply fails whenever you try to start a thread.

Definition at line 55 of file threadDummyImpl.h.


Constructor & Destructor Documentation

ThreadDummyImpl::ThreadDummyImpl Thread parent_obj  )  [inline]
 

Definition at line 32 of file threadDummyImpl.I.

References INLINE.

ThreadDummyImpl::~ThreadDummyImpl  )  [inline]
 

Definition at line 44 of file threadDummyImpl.I.


Member Function Documentation

int ThreadDummyImpl::atomic_dec int &  var  )  [inline]
 

int ThreadDummyImpl::atomic_inc int &  var  )  [inline]
 

int ThreadDummyImpl::atomic_set int &  var,
int  new_value
[inline]
 

Thread * ThreadDummyImpl::get_current_thread  )  [inline, static]
 

Definition at line 93 of file threadDummyImpl.I.

bool ThreadDummyImpl::is_threading_supported  )  [inline, static]
 

Definition at line 106 of file threadDummyImpl.I.

Referenced by Thread::start().

void ThreadDummyImpl::join  )  [inline]
 

Definition at line 69 of file threadDummyImpl.I.

References INLINE, and NULL.

void ThreadDummyImpl::prepare_for_exit  )  [inline, static]
 

Definition at line 81 of file threadDummyImpl.I.

References INLINE.

void ThreadDummyImpl::sleep double  seconds  )  [inline, static]
 

Definition at line 119 of file threadDummyImpl.I.

Referenced by Thread::join().

bool ThreadDummyImpl::start ThreadPriority  priority,
bool  global,
bool  joinable
[inline]
 

Definition at line 56 of file threadDummyImpl.I.

References INLINE.

Referenced by Thread::get_name().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:55:38 2003 for Panda by doxygen1.3