1 #ifndef LIBFILEZILLA_MUTEX_HEADER
2 #define LIBFILEZILLA_MUTEX_HEADER
11 #include "private/windows.hpp"
27 class FZ_PUBLIC_SYMBOL
mutex final
30 explicit mutex(
bool recursive =
true);
68 EnterCriticalSection(m_);
70 pthread_mutex_lock(m_);
78 LeaveCriticalSection(m_);
80 pthread_mutex_unlock(m_);
102 locked_ = op.locked_;
116 EnterCriticalSection(m_);
118 pthread_mutex_lock(m_);
130 LeaveCriticalSection(m_);
132 pthread_mutex_unlock(m_);
140 CRITICAL_SECTION * m_;
142 pthread_mutex_t * m_;
202 CONDITION_VARIABLE cond_;
204 pthread_cond_t cond_;
A simple scoped lock.
Definition: mutex.hpp:61
bool signalled(scoped_lock const &) const
Check if condition is already signalled.
Definition: mutex.hpp:199
Waitable condition variable.
Definition: mutex.hpp:151
void lock()
Obtains the mutex.
Definition: mutex.hpp:112
Assorted classes dealing with time.
void unlock()
Releases the mutex.
Definition: mutex.hpp:126
The duration class represents a time interval in milliseconds.
Definition: time.hpp:271
Sets some global macros and further includes string.hpp.
Lean replacement for std::(recursive_)mutex.
Definition: mutex.hpp:27