mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
998 B
41 lines
998 B
//
|
|
// MODULE: MutexOwner.h
|
|
//
|
|
// PURPOSE: strictly a utility class so we can properly construct & destruct a static mutex.
|
|
//
|
|
// COMPANY: Saltmine Creative, Inc. (206)-284-7511 [email protected]
|
|
//
|
|
// AUTHOR: Oleg Kalosha, Joe Mabel
|
|
//
|
|
// ORIGINAL DATE: 11-04-98
|
|
//
|
|
// NOTES:
|
|
//
|
|
// Version Date By Comments
|
|
//--------------------------------------------------------------------
|
|
// V3.0 11-04-98 JM extracted from SafeTime
|
|
//
|
|
|
|
#if !defined(AFX_MUTEXOWNER_H__7BFC10DD_741D_11D2_961D_00C04FC22ADD__INCLUDED_)
|
|
#define AFX_MUTEXOWNER_H__7BFC10DD_741D_11D2_961D_00C04FC22ADD__INCLUDED_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
|
|
#include <windows.h>
|
|
#include "apgtsstr.h"
|
|
|
|
// strictly a utility class so we can properly construct & destruct a static mutex.
|
|
class CMutexOwner
|
|
{
|
|
private:
|
|
HANDLE m_hmutex;
|
|
public:
|
|
CMutexOwner(const CString & str);
|
|
~CMutexOwner();
|
|
HANDLE & Handle();
|
|
};
|
|
|
|
|
|
#endif // !defined(AFX_MUTEXOWNER_H__7BFC10DD_741D_11D2_961D_00C04FC22ADD__INCLUDED_)
|