sem.hpp
来自「使用ASPI包装成的一些通用类」· HPP 代码 · 共 36 行
HPP
36 行
////////////////////////////////////////////////////////////
//
// 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 + =
减小字号Ctrl + -
显示快捷键?