ShlubluLib
v0.5
ShlubluLib is a lightweight, modular, general purpose, open-source C++ library for Linux and Windows.
|
Go to the documentation of this file.
88 using Guard = std::lock_guard<MutexLock>;
101 : logic_error((
"Python binding: " + message).c_str())
109 : logic_error(std::string(message))
170 std::recursive_mutex mMutex;
171 std::thread::
id mOwnerId;
void lock()
Locks the mutex once available.
MutexLock throws this exception when a locking or unlocking operation is not legal.
Definition: MutexLock.h:94
MutexLock(bool locked=false)
Constructor.
void unlock()
Unlocks the mutex.
unsigned lockLevel() const
Returns the lock level of the mutex.
std::lock_guard< MutexLock > Guard
RAII convenience wrapper.
Definition: MutexLock.h:88
virtual ~MutexLock() noexcept
Destructor.
MutexLock(MutexLock const &)=delete
Copy constructor is deleted.
bool currentThreadIsOwner() const
Tells whether the current thread owns the mutex.
Recursive mutex.
Definition: MutexLock.h:58
MutexLock(MutexLock &&)=delete
Move constructor is deleted.
LockingError(const char *message)
Constructor.
Definition: MutexLock.h:108
LockingError(const std::string &message)
Constructor.
Definition: MutexLock.h:100