2 Star 0 Fork 0

mirrors_chromium_googlesource/webmdshow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
clockable.h 983 Bytes
一键复制 编辑 原始数据 按行查看 历史
// Copyright (c) 2010 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing project authors may
// be found in the AUTHORS file in the root of the source tree.
#pragma once
#include <objbase.h>
class CLockable
{
CLockable(const CLockable&);
CLockable& operator=(const CLockable&);
protected:
CLockable();
virtual ~CLockable();
public:
HRESULT Init();
HRESULT Final();
HRESULT Seize(DWORD timeout_ms);
HRESULT Release();
class Lock
{
Lock(const Lock&);
Lock& operator=(const Lock&);
public:
Lock();
~Lock();
HRESULT Seize(CLockable*);
HRESULT Release();
private:
CLockable* m_pLockable;
};
private:
HANDLE m_hMutex;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_chromium_googlesource/webmdshow.git
git@gitee.com:mirrors_chromium_googlesource/webmdshow.git
mirrors_chromium_googlesource
webmdshow
webmdshow
main

搜索帮助