⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rvrw.h

📁 h.248协议源码
💻 H
字号:
#if (0)
******************************************************************************
Filename    :
Description :
******************************************************************************
                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:$
$Date:$
$Author: S. Cipolli$
******************************************************************************
#endif

#ifndef RV_RW_H
#define RV_RW_H

#include "rvmon_.h"
#include "rvcond_.h"

/* Readers/Writer interface */
typedef struct {
	int readerCount;	/* Number of readers in monitor */
	int busy;			/* Writing */
	RvMon_ mon;			/* Monitor */
	RvCond_ okToRead;	/* Signalled when OK to read */
	RvCond_ okToWrite;	/* Signalled when OK to write */
} RvRw;

#if defined(__cplusplus)
extern "C" {
#endif

RvRw* rvRwConstruct(RvRw* rw);
void rvRwDestruct(RvRw* rw);
void rvRwReadLock(RvRw* rw);
void rvRwReadUnlock(RvRw* rw);
void rvRwWriteLock(RvRw* rw);
void rvRwWriteUnlock(RvRw* rw);

#if defined(__cplusplus)
}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -