Dobby
3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
|
#include <Mutex.h>
Public Types | |
typedef pthread_mutex_t * | native_handle_type |
Public Member Functions | |
Mutex (const Mutex &)=delete | |
Mutex (const Mutex &&)=delete | |
void | lock () |
void | unlock () |
bool | try_lock () |
native_handle_type | native_handle () |
Private Attributes | |
pthread_mutex_t | mLock |
Basic mutex, it has the same basic API as std::mutex so can be swapped out, in addition it implements the C++ 'BasicLockable' and 'Lockable' requirements meaning it can be used as a template for std::unique_lock and std::lock_guard.