Rapicorn - Experimental UI Toolkit  16.0.0
Rapicorn::Mutex Class Reference

The Mutex synchronization primitive is a thin wrapper around std::mutex. More...

#include <thread.hh>

Public Types

typedef pthread_mutex_tnative_handle_type
 

Public Member Functions

constexpr Mutex (struct RECURSIVE_LOCK)
 
void lock ()
 
void unlock ()
 
bool try_lock ()
 
bool debug_locked ()
 Debugging hook, returns if the Mutex is currently locked, might not work with all threading implementations.
 
native_handle_type native_handle ()
 
 Mutex (const Mutex &)=delete
 
Mutexoperator= (const Mutex &)=delete
 

Detailed Description

The Mutex synchronization primitive is a thin wrapper around std::mutex.

This class is a thin wrapper around pthread_mutex_lock() and related functions. This class supports static construction.


The documentation for this class was generated from the following files: