Google

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

thread.h File Reference

Go to the source code of this file.

Compounds

class  AtomicCounter
class  Buffer
class  Event
class  FixedBuffer
class  Mutex
class  MutexCounter
class  Poller
class  Semaphore
class  Thread
class  ThreadKey
class  ThreadLock
class  TimerPort

Typedefs

typedef pthread_t cctid_t
typedef unsigned long timeout_t
typedef int signo_t

Enumerations

enum  throw_t {
  THROW_NOTHING,
  THROW_OBJECT,
  THROW_EXCEPTION
}
enum  thread_cancel_t {
  THREAD_CANCEL_INITIAL = 0,
  THREAD_CANCEL_DEFERRED = 1,
  THREAD_CANCEL_IMMEDIATE,
  THREAD_CANCEL_DISABLED,
  THREAD_CANCEL_DEFAULT = THREAD_CANCEL_DEFERRED,
  THREAD_CANCEL_INVALID
}
enum  thread_suspend_t {
  THREAD_SUSPEND_ENABLE,
  THREAD_SUSPEND_DISABLE
}

Functions

ThreadgetThread (void)
void execHandler (Thread *th)
void sigHandler (int signo)
void* getKey (ThreadKey &tk)
void setKey (ThreadKey &tk, void *ptr)
void operator++ (Mutex &m)
void operator-- (Mutex &m)
void operator++ (Semaphore &s)
void operator-- (Semaphore &s)
void operator++ (Event &s)
void operator-- (Event &s)
void signal (Thread &th, int signo)
void signal (Event &ev)
void signal (Semaphore &sem)
void wait (Semaphore &sem)
void wait (Event &ev, timeout_t timer)
void reset (Event &ev)
int get (Buffer &b, void *o)
int put (Buffer &b, void *o)
int peek (Buffer &b, void *o)
int operator++ (MutexCounter &mc)
int operator-- (MutexCounter &mc)
struct timespec* gettimeout (struct timespec *spec, timeout_t timeout)
void ccxx_sleep (timeout_t msec)
void ccxx_yield (void)
void wait (signo_t signo)
void pdetach (void)
 This function provides a simple and portable means to fork/detach a process into a daemon. This function provides a simple and portable means to fork/detach a process into a daemon. More...


Typedef Documentation

typedef pthread_t cctid_t
 

typedef int signo_t
 

typedef unsigned long timeout_t
 


Enumeration Type Documentation

enum thread_cancel_t
 

Enumeration values:
THREAD_CANCEL_INITIAL  
THREAD_CANCEL_DEFERRED  
THREAD_CANCEL_IMMEDIATE  
THREAD_CANCEL_DISABLED  
THREAD_CANCEL_DEFAULT  
THREAD_CANCEL_INVALID  

enum thread_suspend_t
 

Enumeration values:
THREAD_SUSPEND_ENABLE  
THREAD_SUSPEND_DISABLE  

enum throw_t
 

Enumeration values:
THROW_NOTHING  
THROW_OBJECT  
THROW_EXCEPTION  


Function Documentation

void ccxx_sleep ( timeout_t msec )
 

This is mapped into sleep().

Parameters:
msec   timeout in millisecond time range.

void ccxx_yield ( void )
 

void execHandler ( Thread * th )
 

int get ( Buffer & b,
void * o ) [inline]
 

void * getKey ( ThreadKey & tk ) [inline]
 

Thread* getThread ( void )
 

struct timespec* gettimeout ( struct timespec * spec,
timeout_t timeout )
 

int operator++ ( MutexCounter & mc )
 

void operator++ ( Event & s ) [inline]
 

void operator++ ( Semaphore & s ) [inline]
 

void operator++ ( Mutex & m ) [inline]
 

int operator-- ( MutexCounter & mc )
 

void operator-- ( Event & s ) [inline]
 

void operator-- ( Semaphore & s ) [inline]
 

void operator-- ( Mutex & m ) [inline]
 

void pdetach ( void )
 

This function provides a simple and portable means to fork/detach a process into a daemon. This function provides a simple and portable means to fork/detach a process into a daemon.

Author(s):
David Sugar <dyfet@ostel.com>

int peek ( Buffer & b,
void * o ) [inline]
 

int put ( Buffer & b,
void * o ) [inline]
 

void reset ( Event & ev ) [inline]
 

void setKey ( ThreadKey & tk,
void * ptr ) [inline]
 

void sigHandler ( int signo )
 

void signal ( Semaphore & sem ) [inline]
 

void signal ( Event & ev ) [inline]
 

void signal ( Thread & th,
int signo ) [inline]
 

void wait ( signo_t signo )
 

void wait ( Event & ev,
timeout_t timer ) [inline]
 

void wait ( Semaphore & sem ) [inline]
 


Generated at Fri Mar 23 10:47:55 2001 for CommonC++ by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000