Ai
1 Star 0 Fork 0

wangcichen/urbackup_backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Mutex_std.h 536 Bytes
一键复制 编辑 原始数据 按行查看 历史
#include "Interface/Mutex.h"
#include <mutex>
class CMutex : public IMutex
{
public:
CMutex(void);
~CMutex(void);
virtual void Lock(void);
virtual ILock * Lock2(void);
virtual void Unlock(void);
virtual bool TryLock(void);
private:
std::recursive_mutex mutex;
std::unique_lock<std::recursive_mutex> *lock;
};
class CLock : public ILock
{
public:
CLock(std::unique_lock<std::recursive_mutex> *pLock);
~CLock();
std::unique_lock<std::recursive_mutex>* getLock();
private:
std::unique_lock<std::recursive_mutex>* lock;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/wangcichen/urbackup_backend.git
git@gitee.com:wangcichen/urbackup_backend.git
wangcichen
urbackup_backend
urbackup_backend
dev

搜索帮助