📄 sem.hpp
字号:
////////////////////////////////////////////////////////////
//
// Module SEM.HPP
//
// ASPI class library
// Semaphore support
//
// Project: A Programmer's Guide to SCSI
//
// Copyright (C) 1997, Brian Sawert
// Portions copyright (C) 1995, Larry Martin
// All rights reserved
//
////////////////////////////////////////////////////////////
#ifndef SEM_HPP_INCLUDED
#define SEM_HPP_INCLUDED
#include <windows.h>
class MutexSemaphore {
public:
HANDLE Handle;
MutexSemaphore();
~MutexSemaphore();
int RequestMutex(long timeout=-1L);
int ReleaseMutex();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -