NCBI C++ ToolKit
|
Multi-threading – mutexes; rw-locks; semaphore. More...
#include <corelib/ncbithr_conf.hpp>
#include <corelib/guard.hpp>
#include <corelib/ncbiobj.hpp>
#include <corelib/ncbitime.hpp>
#include <memory>
#include <deque>
#include <corelib/ncbimtx.inl>
Go to the source code of this file.
Go to the SVN repository for this file.
Namespaces | |
ncbi_namespace_mutex_mt | |
SSystemFastMutex –. | |
Macros | |
#define | INTERNAL_MUTEX_DEBUG |
Mutex debug setting. More... | |
#define | SYSTEM_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER |
#define | NCBI_NAMESPACE_MUTEX ncbi_namespace_mutex_mt |
#define | THREAD_SYSTEM_ID_INITIALIZER 0 |
Use in defining initial value of system mutex. More... | |
#define | STATIC_FAST_MUTEX_INITIALIZER { SYSTEM_MUTEX_INITIALIZER, NCBI_NS_NCBI::SSystemFastMutex::eMutexInitialized } |
Determine type of system mutex initialization. More... | |
#define | DEFINE_STATIC_FAST_MUTEX(id) static NCBI_NS_NCBI::SSystemFastMutex id = STATIC_FAST_MUTEX_INITIALIZER |
Define static fast mutex and initialize it. More... | |
#define | DECLARE_CLASS_STATIC_FAST_MUTEX(id) static NCBI_NS_NCBI::SSystemFastMutex id |
Declare static fast mutex. More... | |
#define | DEFINE_CLASS_STATIC_FAST_MUTEX(id) NCBI_NS_NCBI::SSystemFastMutex id = STATIC_FAST_MUTEX_INITIALIZER |
Define fast mutex and initialize it. More... | |
#define | STATIC_MUTEX_INITIALIZER { STATIC_FAST_MUTEX_INITIALIZER, THREAD_SYSTEM_ID_INITIALIZER, 0 } |
Define static mutex initializer. More... | |
#define | DEFINE_STATIC_MUTEX(id) static NCBI_NS_NCBI::SSystemMutex id = STATIC_MUTEX_INITIALIZER |
Define static mutex and initialize it. More... | |
#define | DECLARE_CLASS_STATIC_MUTEX(id) static NCBI_NS_NCBI::SSystemMutex id |
Declare static mutex. More... | |
#define | DEFINE_CLASS_STATIC_MUTEX(id) NCBI_NS_NCBI::SSystemMutex id = STATIC_MUTEX_INITIALIZER |
Define mutex and initialize it. More... | |
#define | NCBI_HAVE_CONDITIONAL_VARIABLE |
CConditionVariable –. More... | |
Enumerations | |
enum | ERWLockType { eReadLock = 0 , eWriteLock = 1 } |
Type of locking provided by CYieldingRWLock. More... | |
Functions | |
static TThreadSystemID | GetCurrentThreadSystemID (void) |
Get the current thread ID. More... | |
Multi-threading – mutexes; rw-locks; semaphore.
MUTEX:
MUTEX CLASSES:
RW-LOCK:
CONDITION VARIABLE:
SEMAPHORE:
Definition in file ncbimtx.hpp.