Dobby  3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
Public Types | Public Member Functions | Private Attributes | List of all members
AICommon::Mutex Class Reference

#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
 

Detailed Description

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.


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