#include <SysSemaphore.hpp>
Public Member Functions | |
| SysMutex (const char *variable) | |
| SysMutex (const char *, bool) | |
| ~SysMutex () | |
| void | create () |
| void | open () |
| void | close () |
| void | request (const char *ds, int di) |
| void | release (const char *ds, int di) |
| bool | requestImmediate (const char *ds, int di) |
| SysMutex (const char *variable) | |
| SysMutex (const char *, bool) | |
| ~SysMutex () | |
| void | create () |
| void | close () |
| void | request (const char *ds, int di) |
| void | release (const char *ds, int di) |
| bool | requestImmediate (const char *ds, int di) |
Protected Attributes | |
| const char * | mutexVariable |
| pthread_mutex_t | mutexMutex |
| bool | created |
| HANDLE | mutexMutex |
Definition at line 78 of file unix/SysSemaphore.hpp.
|
inline |
Definition at line 80 of file unix/SysSemaphore.hpp.
| SysMutex::SysMutex | ( | const char * | variable, |
| bool | createSem | ||
| ) |
Create a semaphore with potential creation-time initialization.
| create | Indicates whether the semaphore should be created now. |
Definition at line 266 of file unix/SysSemaphore.cpp.
References create(), and mutexVariable.
|
inline |
Definition at line 82 of file unix/SysSemaphore.hpp.
|
inline |
Definition at line 142 of file windows/SysSemaphore.hpp.
| SysMutex::SysMutex | ( | const char * | , |
| bool | |||
| ) |
|
inline |
Definition at line 144 of file windows/SysSemaphore.hpp.
| void SysMutex::close | ( | ) |
Definition at line 324 of file unix/SysSemaphore.cpp.
References created, and mutexMutex.
Referenced by ActivityManager::closeLocks(), RexxMemory::closeLocks(), and Interpreter::closeLocks().
| void SysMutex::close | ( | ) |
| void SysMutex::create | ( | ) |
Definition at line 275 of file unix/SysSemaphore.cpp.
References created, and mutexMutex.
Referenced by ActivityManager::createLocks(), RexxMemory::createLocks(), Interpreter::createLocks(), APIServer::initServer(), ServerMacroSpaceManager::ServerMacroSpaceManager(), ServerQueueManager::ServerQueueManager(), ServerRegistrationManager::ServerRegistrationManager(), and SysMutex().
| void SysMutex::create | ( | ) |
|
inline |
Definition at line 84 of file unix/SysSemaphore.hpp.
|
inline |
Definition at line 106 of file unix/SysSemaphore.hpp.
References ConcurrencyInfos::activation, CONCURRENCY_TRACE, dbgprintf(), Utilities::GetConcurrencyInfos(), ConcurrencyInfos::lock, mutexMutex, mutexVariable, ConcurrencyInfos::reserveCount, ConcurrencyInfos::threadId, Utilities::traceConcurrency(), and ConcurrencyInfos::variableDictionary.
Referenced by APIServer::releaseLock(), Interpreter::releaseResourceLock(), RexxMemory::returnFlattenStack(), RexxMemory::setEnvelope(), RexxMemory::setObjectOffset(), ActivityManager::unlockKernel(), and Lock::~Lock().
|
inline |
Definition at line 168 of file windows/SysSemaphore.hpp.
References ConcurrencyInfos::activation, CONCURRENCY_TRACE, dbgprintf(), Utilities::GetConcurrencyInfos(), ConcurrencyInfos::lock, mutexMutex, mutexVariable, ConcurrencyInfos::reserveCount, ConcurrencyInfos::threadId, Utilities::traceConcurrency(), and ConcurrencyInfos::variableDictionary.
|
inline |
Definition at line 86 of file unix/SysSemaphore.hpp.
References ConcurrencyInfos::activation, CONCURRENCY_TRACE, dbgprintf(), Utilities::GetConcurrencyInfos(), ConcurrencyInfos::lock, mutexMutex, mutexVariable, ConcurrencyInfos::reserveCount, ConcurrencyInfos::threadId, Utilities::traceConcurrency(), and ConcurrencyInfos::variableDictionary.
Referenced by RexxMemory::getFlattenStack(), Interpreter::getResourceLock(), Lock::Lock(), ActivityManager::lockKernel(), APIServer::requestLock(), RexxMemory::setEnvelope(), and RexxMemory::setObjectOffset().
|
inline |
Definition at line 147 of file windows/SysSemaphore.hpp.
References ConcurrencyInfos::activation, CONCURRENCY_TRACE, dbgprintf(), Utilities::GetConcurrencyInfos(), ConcurrencyInfos::lock, mutexMutex, mutexVariable, ConcurrencyInfos::reserveCount, ConcurrencyInfos::threadId, Utilities::traceConcurrency(), ConcurrencyInfos::variableDictionary, and waitHandle().
|
inline |
Definition at line 126 of file unix/SysSemaphore.hpp.
References ConcurrencyInfos::activation, CONCURRENCY_TRACE, dbgprintf(), Utilities::GetConcurrencyInfos(), ConcurrencyInfos::lock, mutexMutex, mutexVariable, ConcurrencyInfos::reserveCount, ConcurrencyInfos::threadId, Utilities::traceConcurrency(), and ConcurrencyInfos::variableDictionary.
Referenced by RexxMemory::getFlattenStack(), ActivityManager::lockKernelImmediate(), RexxMemory::setEnvelope(), and RexxMemory::setObjectOffset().
|
inline |
Definition at line 189 of file windows/SysSemaphore.hpp.
References ConcurrencyInfos::activation, CONCURRENCY_TRACE, dbgprintf(), Utilities::GetConcurrencyInfos(), ConcurrencyInfos::lock, mutexMutex, mutexVariable, ConcurrencyInfos::reserveCount, ConcurrencyInfos::threadId, Utilities::traceConcurrency(), and ConcurrencyInfos::variableDictionary.
|
protected |
Definition at line 151 of file unix/SysSemaphore.hpp.
|
protected |
Definition at line 150 of file unix/SysSemaphore.hpp.
Referenced by close(), create(), release(), request(), and requestImmediate().
|
protected |
Definition at line 213 of file windows/SysSemaphore.hpp.
|
protected |
Definition at line 149 of file unix/SysSemaphore.hpp.
Referenced by release(), request(), requestImmediate(), and SysMutex().