rvsem_.c

来自「h.248协议源码」· C语言 代码 · 共 47 行

C
47
字号
#if (0)
************************************************************************
Filename   : 
Description:
************************************************************************
   Copyright (c) 2000 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: Jay Davis$
   ************************************************************************
#endif

#include <assert.h>
#include <string.h>
#include "rvsem_.h"

/* OS Speicifc Semaphore functions */

/* OSE */
#if defined(RV_SEMAPHORE_OSE)
RvSem_ *rvSemConstruct_(RvSem_ *s, unsigned int i)
{
	/* For a static semaphore, initialize structure manually */
	s->value = i;
	s->f = 0;
	s->b = 0;
	return s;
}

void rvSemDestruct_(RvSem_ *s)
{
	/* do nothing, no way to destroy static semaphore */
}
   
#endif

⌨️ 快捷键说明

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