cspinlockimpwin32.h

来自「可以实现对邮件的加密解密以及签名」· C头文件 代码 · 共 37 行

H
37
字号
/*____________________________________________________________________________
		Copyright (C) 2002 PGP Corporation
        All rights reserved.

        $Id: CSpinLockImpWin32.h,v 1.3 2002/08/06 20:10:46 dallen Exp $
____________________________________________________________________________*/

#ifndef Included_CSpinLockImp98_h	// [
#define Included_CSpinLockImp98_h

#include "pgpClassesConfig.h"

#include "CMutex.h"
#include "CSpinLockImp.h"

_PGP_BEGIN

// Class CSpinLockImpWin32

// Implemented as a mutex under Win32.

class CSpinLockImpWin32 : public CSpinLockImp
{
	friend class CPFLImpFactoryWin32;

public:
	void	Lock() {mMutex.Enter();}
	void	Unlock() {mMutex.Leave();}

private:
	CMutex	mMutex;
};

_PGP_END

#endif	// ] Included_CSpinLockImp98_h

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?