EpcTools
An event based multi-threaded C++ development framework.
Classes | Macros | Functions
esynch.h File Reference

Contains definitions for synchronization objects. More...

#include <semaphore.h>
#include "ebase.h"
#include "estring.h"
#include "eerror.h"

Go to the source code of this file.

Classes

class  EMutexData
 Contains the data associated with a public or private mutex. More...
 
class  EMutexLock
 Acquires and holds a lock on the specified mutex. More...
 
class  EMutexPrivate
 A private mutex (the mutex data is allocated from either the heap or stack). More...
 
class  EMutexPublic
 A public mutex (the mutex data is located in shared memory). More...
 
class  ESemaphoreData
 Contains the data associated with a public or private semaphore. More...
 
class  ESemaphoreBase
 Contains the base functionality for a semaphore. More...
 
class  ESemaphorePrivate
 Represents a private semaphore, the semaphore data is allocated from either the stack or heap. More...
 
class  ESemaphorePublic
 Represents a public semaphore, the semaphore data is located in shared memory. More...
 
class  ERWLock
 Encapsulates a read-write lock object. More...
 
class  ERDLock
 Request a read lock for the specified read-write lock object. More...
 
class  EWRLock
 Request a write lock for the specified read-write lock object. More...
 
class  EEvent
 An object that can be waited on to be set in another thread. More...
 

Macros

#define MAX_SEMIDS   64
 
#define MAX_NOTIFYIDS   64
 

Functions

 DECLARE_ERROR_ADVANCED2 (ERWLockError_LockAttrInitFailed)
 
 DECLARE_ERROR_ADVANCED2 (ERWLockError_LockInitFailed)
 

Detailed Description

Contains definitions for synchronization objects.

Macro Definition Documentation

◆ MAX_NOTIFYIDS

#define MAX_NOTIFYIDS   64

◆ MAX_SEMIDS

#define MAX_SEMIDS   64

Function Documentation

◆ DECLARE_ERROR_ADVANCED2() [1/2]

DECLARE_ERROR_ADVANCED2 ( ERWLockError_LockAttrInitFailed  )

◆ DECLARE_ERROR_ADVANCED2() [2/2]

DECLARE_ERROR_ADVANCED2 ( ERWLockError_LockInitFailed  )