26 #ifndef MPD_DB_LOCK_HXX
27 #define MPD_DB_LOCK_HXX
66 assert(db_mutex_holder.
IsNull());
A low-level identification for a thread.
static void db_unlock(void)
Release the global database lock.
static gcc_pure bool holding_db_lock(void)
Does the current thread hold the database lock?
static gcc_pure const ThreadId GetCurrent()
Return the current thread's id .
Unlock the database while in the current scope.
bool IsInside() const
Check if this thread is the current thread.
static gcc_const ThreadId Null()
static void db_lock(void)
Obtain the global database lock.
void unlock()
Unlock the mutex now, making the destructor a no-op.
gcc_pure bool IsNull() const