counts.h
来自「VC++串口通信设。本书详细说明讲解了在VC++环境下编写串口通信得过程。值得一」· C头文件 代码 · 共 32 行
H
32 行
#ifndef COUNTS_H
#define COUNTS_H
#include "StdInc.h"
//
// The Counters class is a simple encapsulation of the server lock
// and the server object count global variables.
//
class Counters
{
public:
// Public query methods
static ULONG GetLockCount();
static ULONG GetObjectCount();
// Counter increment.decrement methods
static VOID IncLockCount();
static VOID DecLockCount();
static VOID IncObjectCount();
static VOID DecObjectCount();
private:
// Lock and object count variables
static ULONG m_cLocks;
static ULONG m_cNumObjects;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?