rvsem.c
来自「h.248协议源码」· C语言 代码 · 共 55 行
C
55 行
#if (0)
************************************************************************
Filename : FILENAME
Description : SHORT DESCRIPTION OF THE FILE HERE
************************************************************************
Copyright (c) 1999 RADVision Inc.
************************************************************************
NOTICE:
This document contains information that is proprietary to RADVision LTD.
No part of this publication may be reproduced in any form whatsoever
without written prior approval by RADVision LTD..
RADVision LTD. reserves the right to revise this publication and make
changes without obligation to notify any person of such revisions or
changes.
************************************************************************
************************************************************************
$Revision: CURRENT REVISION$
$Date: REVISION DATE$
$Author: S. Cipolli$
************************************************************************
#endif
#include "rvlog.h"
#include "rvsem.h"
/* OS independent interface */
/* Very minimal implementation. */
RvSem* rvSemConstruct(RvSem *s, unsigned int initialValue) {
rvLogEnter(&rvLog, "rvSemConstruct");
rvSemConstruct_(s, initialValue);
rvLogLeave(&rvLog, "rvSemConstruct");
return s;
}
void rvSemDestruct(RvSem* s) {
rvLogEnter(&rvLog, "rvSemDestruct");
rvSemDestruct_(s);
rvLogLeave(&rvLog, "rvSemDestruct");
}
void rvSemWait(RvSem *s) {
rvLogEnter(&rvLog, "rvSemWait");
rvSemWait_(s);
rvLogLeave(&rvLog, "rvSemWait");
}
void rvSemPost(RvSem *s) {
rvLogEnter(&rvLog, "rvSemPost");
rvSemPost_(s);
rvLogLeave(&rvLog, "rvSemPost");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?