Synchronization and threading services.
More...
#include <cc++/config.h>
#include <cc++/string.h>
#include <ctime>
#include <pthread.h>
#include <time.h>
#include <signal.h>
#include <unistd.h>
Include dependency graph for thread.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures
The
Mutex class is used to protect a section of code so that at any given time only a single thread can perform the protected operation.
More...
The
MutexLock class is used to protect a section of code so that at any given time only a single thread can perform the protected operation.
More...
The
ThreadLock class impliments a thread rwlock for optimal reader performance on systems which have rwlock support, and reverts to a simple mutex for those that do not.
More...
The
ReadLock class is used to protect a section of code through a
ThreadLock for "read" access to the member function.
More...
The
Mutex Counter is a counter variable which can safely be incremented or decremented by multiple threads.
More...
A conditional variable synchcronization object for one to one and one to many signal and control events between processes.
More...
A semaphore is generally used as a synchronization object between multiple threads or to protect a limited and finite resource such as a memory or thread pool.
More...
The
SemaphoreLock class is used to protect a section of code through a semaphore so that only x instances of the member function may execute concurrently.
More...
The
Event class implements a feature originally found in the WIN32 API; event notification.
More...
Every thread of execution in an application is created by instantiating an object of a class derived from the
Thread class.
More...
A class to automatically set the thread cancellation mode of a member function.
More...
This class allows the creation of a thread context unique "pointer" that can be set and retrieved and can be used to create thread specific data areas for implementing "thread safe" library routines.
More...
Timer ports are used to provide synchronized timing events when managed under a "service thread" such as
SocketService.
More...
This class is used to access non-reentrant date and time functions in the standard C library.
More...
Macros
Typedefs
Functions
struct tm *
localtime_r (const time_t *t, struct tm *b)
char *
ctime_r (const time_t *t, char *buf)
struct tm *
gmtime_r (const time_t *t, struct tm *b)
char *
asctime_r (const struct tm *tm, char *b)
Variables
Detailed Description
Synchronization and threading services.
Definition in file thread.h.
Macro Definition Documentation
#define ENTER_CRITICAL enterMutex();
#define ENTER_DEFERRED setCancel(cancelDeferred);
#define LEAVE_CRITICAL leaveMutex();
#define LEAVE_DEFERRED setCancel(cancelImmediate);
#define psleep
(
x )
(sleep)(x)
Typedef Documentation
Function Documentation
char* asctime_r
(
const struct tm *
tm,
char *
b
)
inline
char* ctime_r
(
const time_t *
t,
char *
buf
)
inline
struct timespec* getTimeout
(
struct timespec *
spec,
)
struct tm* gmtime_r
(
const time_t *
t,
struct tm *
b
)
struct tm* localtime_r
(
const time_t *
t,
struct tm *
b
)
Variable Documentation