, mutex.h, std:: mutex. :
mutex.h std:: mutex
class CAPABILITY("mutex") Mutex {
private:
std::mutex std_mutex;
public:
mutex.cpp
#include "mutex.h"
void Mutex::Lock(){
this->std_mutex.lock();
}
void Mutex::Unlock(){
this->std_mutex.unlock();
}
bool Mutex::TryLock(){
return this->std_mutex.try_lock();
}