📄 event.cc
字号:
/***************************************************************************
*
* 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: event.cc
*
* Identification: @(#) 1.2 event.cc
*
* Date: 4/26/93 17:15:22
*
****************************************************************************
*/
#include "event.h"
Event::Event ()
{
int err;
fid = sc_fcreate (&err);
}
Event::~Event ()
{
int err;
sc_fdelete(fid, 1, &err);
}
unsigned
Event::pend_and (unsigned mask, unsigned long timeout)
{
int err;
return sc_fpend (fid, timeout, mask, 1, &err);
}
unsigned
Event::pend_or (unsigned mask, unsigned long timeout)
{
int err;
return sc_fpend (fid, timeout, mask, 0, &err);
}
unsigned
Event::inquiry ()
{
int err;
return sc_finquiry (fid, &err);
}
unsigned
Event::clear (unsigned mask)
{
int err;
return sc_fclear (fid, mask, &err);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -