⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mutex.cpp

📁 This source can emulate function generator using sound card. This source is very useful for sound c
💻 CPP
字号:
#include "Mutex.h"


Mutex::Mutex()
{
	m_hMutex = CreateMutex(NULL, 0, NULL);

}
Mutex::~Mutex()
{	
	CloseHandle(m_hMutex);
	m_hMutex = NULL;
}
void Mutex::Get()const
{
	WaitForSingleObject( m_hMutex, INFINITE );

}

void Mutex::Release()const
{
	ReleaseMutex(m_hMutex);	
}

⌨️ 快捷键说明

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