sem.h
来自「VRTX 商用嵌入式实时操作系统」· C头文件 代码 · 共 39 行
H
39 行
/***************************************************************************
*
* Copyright (c) 1993 READY SYSTEMS CORPORATION.
*
* All rights reserved. READY SYSTEMS' source code is an unpublished
* work and the use of a copyright notice does not imply otherwise.
* This source code contains confidential, trade secret material of
* READY SYSTEMS. Any attempt or participation in deciphering, decoding,
* reverse engineering or in any way altering the source code is
* strictly prohibited, unless the prior written consent of
* READY SYSTEMS is obtained.
*
*
* Module Name: semaphore.h
*
* Identification: @(#) 1.6 semaphore.h
*
* Date: 6/29/93 10:33:08
*
****************************************************************************
*/
#include <vrtxil.h>
class Semaphore {
public:
Semaphore ();
Semaphore (int count, int pend_order = VRTX_PEND_ORDER_FIFO);
~Semaphore ();
int pend (unsigned long timeout = 0);
void post ();
int accept ();
int count ();
int id ();
private:
int sid;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?