Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

thread.h File Reference

Synchronization and threading services. More...

#include <cc++/config.h>
#include <ctime>
#include <pthread.h>
#include <time.h>
#include <signal.h>
#include <unistd.h>

Go to the source code of this file.

Namespaces

namespace  ost

Defines

#define CCXX_POSIX
#define TIMEOUT_INF   ~((timeout_t) 0)
#define ENTER_CRITICAL   enterMutex();
#define LEAVE_CRITICAL   leaveMutex();
#define ENTER_DEFERRED   setCancel(cancelDeferred);
#define LEAVE_DEFERRED   setCancel(cancelImmediate);
#define psleep(x)   (sleep)(x)

Typedefs

typedef pthread_t cctid_t
typedef unsigned long timeout_t
typedef int signo_t

Functions

timespec * getTimeout (struct timespec *spec, timeout_t timeout)
void wait (signo_t signo)
ThreadgetThread (void)
tm * localtime_r (const time_t *t, struct tm *b)
char * ctime_r (const time_t *t, char *buf)
tm * gmtime_r (const time_t *t, struct tm *b)\
char * asctime_r (const struct tm *tm, char *b)\

Variables

__EXPORT Thread
__EXPORT ThreadKey
__EXPORT Conditional
__EXPORT Event


Detailed Description

Synchronization and threading services.


Define Documentation

#define CCXX_POSIX
 

#define ENTER_CRITICAL   enterMutex();
 

#define ENTER_DEFERRED   setCancel(cancelDeferred);
 

#define LEAVE_CRITICAL   leaveMutex();
 

#define LEAVE_DEFERRED   setCancel(cancelImmediate);
 

#define psleep  )     (sleep)(x)
 

#define TIMEOUT_INF   ~((timeout_t) 0)
 


Typedef Documentation

typedef pthread_t cctid_t
 

typedef int ost::signo_t
 

typedef unsigned long timeout_t
 


Function Documentation

char* asctime_r const struct tm *  tm,
char *  b
[inline]
 

char* ctime_r const time_t *  t,
char *  buf
[inline]
 

Thread* getThread void   )  [inline]
 

struct timespec* getTimeout struct timespec *  spec,
timeout_t  timeout
 

struct tm* gmtime_r const time_t *  t,
struct tm *  b
[inline]
 

struct tm* localtime_r const time_t *  t,
struct tm *  b
[inline]
 

void wait signo_t  signo  ) 
 


Variable Documentation

class __EXPORT ost::Conditional
 

class __EXPORT ost::Event
 

class __EXPORT ost::Thread
 

class __EXPORT ost::ThreadKey
 


Generated on Wed Jul 5 08:05:28 2006 for GNU CommonC++ by  doxygen 1.4.1