8#ifndef HPP_ALIB_THREADS_THREADLOCK
9#define HPP_ALIB_THREADS_THREADLOCK 1
11#if !defined (HPP_ALIB_THREADS_THREADLOCKNR)
15#if !defined (_GLIBCXX_CONDITION_VARIABLE) && !defined(_CONDITION_VARIABLE_)
16 #include <condition_variable>
19#if !defined (_GLIBCXX_THREAD) && !defined (_THREAD_ )
24namespace alib {
namespace threads {
191 return owner == std::this_thread::get_id();
203 std::thread::id
id=
owner;
204 if(
id== std::thread::id() )
Thread * GetOwner() const
bool IsOwnedByCurrentThread() const
ALIB_API void Acquire(const NCString &dbgFile, int dbgLine, const NCString &dbgFunc)
ALIB_API void SetSafeness(lang::Safeness safeness)
lang::Safeness GetSafeness() const
int CountAcquirements() const
ALIB_API void Release()
defined(ALIB_DOX)
std::condition_variable mutexNotifier
integer DbgWarningAfterWaitTimeInMillis
uint16_t DbgRecursionWarningThreshold
@ Safe
Do it or treat it with safety.
ALIB_API Thread * getThread(std::thread::id c11ID)
threads::Thread Thread
Type alias in namespace alib.
threads::ThreadLock ThreadLock
Type alias in namespace alib.
lang::integer integer
Type alias in namespace alib.