亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rvqueue.h

?? 基于h323協議的軟phone
?? H
字號:
/***********************************************************************
Filename   : rvqueue.h
Description: rvqueue header file
************************************************************************
      Copyright (c) 2001,2002 RADVISION Inc. and RADVISION Ltd.
************************************************************************
NOTICE:
This document contains information that is confidential and proprietary
to RADVISION Inc. and RADVISION Ltd.. No part of this document may be
reproduced in any form whatsoever without written prior approval by
RADVISION Inc. or RADVISION Ltd..

RADVISION Inc. and RADVISION Ltd. reserve the right to revise this
publication and make changes without obligation to notify any person of
such revisions or changes.
***********************************************************************/
/*$
{package:
	{name: Queue}
	{superpackage: CBase}
	{include: rvqueue.h}
	{description:	
		{p: This module provides functions for creating and manipulating queues. These
			queues are completely thread safe and support multiple threads operating
			a single queue simultaneously.}
	}
}
$*/
#ifndef RV_QUEUE_H
#define RV_QUEUE_H

#include "rvcbase.h"
#include "rvlock.h"
#include "rvsemaphore.h"
#include "rvmemory.h"

/* Error checks to make sure configuration has been done properly */
#if !defined(RV_QUEUE_TYPE) || ((RV_QUEUE_TYPE != RV_QUEUE_STANDARD))
#error RV_QUEUE_TYPE not set properly
#endif
/* End of configuration error checks */

/* Module specific error codes (-512..-1023). See rverror.h for more details */
#define RV_QUEUE_ERROR_EMPTY   -512 /* queue is empty */
#define RV_QUEUE_ERROR_FULL    -513 /* queue is full */
#define RV_QUEUE_ERROR_STOPPED -514 /* queue is stopped */

/* priority for RvQueueSend, URGENT puts item at front of queue */
#define RV_QUEUE_SEND_NORMAL RvIntConst(0)
#define RV_QUEUE_SEND_URGENT RvIntConst(1)

/* Constants for indicating if queue functions should block. */
#define RV_QUEUE_WAIT RV_TRUE
#define RV_QUEUE_NOWAIT RV_FALSE

/*$
{type:
	{name: RvQueue}
	{superpackage: Queue}
	{include: rvqueue.h}
	{description:	
		{p: A queue object.}
	}
}
$*/
typedef struct {
	RvSize_t size;        /* Maximum number of items in queue */
	RvSize_t curitems;    /* current number of items in queue */
	RvSize_t itemsize;    /* size of each item in queue */
	RvLock lock;          /* lock on queue data structure */
	RvSemaphore emptysem; /* semaphore to block tasks waiting due to empty queue */
	RvSemaphore fullsem;  /* semaphore to block tasks waiting due to full queue */
	RvSize_t waitempty;   /* number of tasks waiting on "emptysem" */
	RvSize_t waitfull;    /* number of tasks waiting on "fullsem" */
	RvSize_t notifyempty; /* Number of tasks waiting on "emptysem" told to continue */
	RvSize_t notifyfull;  /* Number of tasks waiting on "fullsem" told to continue */
	void *bufstart;       /* start of queue storage, first physical item */
	void *bufend;         /* end of queue storage, last physical item */
	void *firstitem;      /* current logical item at front of queue */
	void *lastitem;       /* current logical item at end of queue */
	RvBool stopped;       /* set to RV_TRUE when queue has been stopped */
} RvQueue;

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

/* Prototypes: See documentation blocks below for details. */
RvStatus RvQueueInit(void);
RvStatus RvQueueEnd(void);
RVCOREAPI RvStatus RVCALLCONV RvQueueConstruct(RvQueue *queue, RvSize_t numitems, RvSize_t itemsize, RvMemory *bufmem);
RVCOREAPI RvStatus RVCALLCONV RvQueueDestruct(RvQueue *queue);
RVCOREAPI RvStatus RVCALLCONV RvQueueReceive(RvQueue *queue, void *buf, RvSize_t bufsize, RvBool wait);
RVCOREAPI RvStatus RVCALLCONV RvQueueSend(RvQueue *queue, void *buf, RvSize_t bufsize, RvInt priority, RvBool wait);
RVCOREAPI RvStatus RVCALLCONV RvQueueStop(RvQueue *queue);
RVCOREAPI RvStatus RVCALLCONV RvQueueClear(RvQueue *queue);
RvBool RvQueueIsStopped(RvQueue *queue);
RvSize_t RvQueueSize(RvQueue *queue);
RvSize_t RvQueueItems(RvQueue *queue);

#if defined(RV_TEST_CODE)
void RvQueueTest(void);
#endif /* RV_TEST_CODE */

#if defined(__cplusplus)
}
#endif 

/* Function Documentation */
/*$
{function scope="protected":
	{name: RvQueueInit}
	{superpackage: Queue}
	{include: rvqueue.h}
	{description:
		{p: Initializes the Queue module. Must be called once (and
			only once) before any other functions in the module are called.}
	}
	{proto: RvStatus RvQueueInit(void); }
	{returns: RV_OK if successful otherwise an error code.}
}
$*/
/*$
{function scope="protected":
	{name: RvQueueEnd}
	{superpackage: Queue}
	{include: rvqueue.h}
	{description:
		{p: Shuts down the Queue module. Must be called once (and
			only once) when no further calls to this module will be made.}
	}
	{proto: RvStatus RvQueueEnd(void); }
	{returns: RV_OK if successful otherwise an error code.}
}
$*/
/*$
{function:
	{name: RvQueueConstruct}
	{superpackage: Queue}
	{include: rvqueue.h}
	{description:
		{p: Constructs a queue object based on the parameters passed in.}
	}
	{proto: RvStatus RvQueueConstruct(RvQueue *queue, RvSize_t numitems, RvSize_t *itemsize, RvMemory *bufmem);}
	{params:
		{param: {n: queue} {d: Pointer to queue object to be constructed.}}
		{param: {n: numitems} {d: Number of items that the queue should be able to hold.}}
		{param: {n: itemsize} {d: Maximum size of each item that will put put into the queue.}}
		{param: {n: bufmem} {d: Memory region to allocate queue memeory from (NULL = default region).}}
	}
	{returns: RV_OK if successful otherwise an error code.}
}
$*/
/*$
{function:
	{name: RvQueueDestruct}
	{superpackage: Queue}
	{include: rvqueue.h}
	{description:
		{p: Destructs a queue.}
	}
	{proto: RvStatus RvQueueDestruct(RvQueue *queue);}
	{params:
		{param: {n: queue} {d: Pointer to queue object to be Destructed.}}
	}
	{returns: RV_OK if successful otherwise an error code.}
	{notes:
		{note:  All items in the queue are lost when the queue is destructed.}
		{note:  Insure that no threads are operating on the queue when it is
				destructing since not all operating systems handle the situation
				gracefully.}
		}
}
$*/
/*$
{function:
	{name: RvQueueReceive}
	{superpackage: Queue}
	{include: rvqueue.h}
	{description:
		{p: Gets an item from the front of a queue.}
	}
	{proto: RvStatus RvQueueReceive(RvQueue *queue, void *buf, RvSize_t bufsize, RvBool wait);}
	{params:
		{param: {n: queue}  {d: Pointer to queue object to get item from.}}
		{param: {n: buf}    {d: Pointer to buffer that item will be copied to.}}
		{param: {n: bufsize} {d: Size of the buffer that buf points to.}}
		{param: {n: wait}   {d: Set to RV_QUEUE_WAIT if thread should wait until item is available.
								If set to RV_QUEUE_NOWAIT, RV_QUEUE_ERROR_EMPTY will be returned if
								no item is available.}}
	}
	{returns:   RV_OK if successful otherwise an error code. An error code of RV_QUEUE_ERROR_STOPPED
				indicates that the queue has been permanently stopped and there are no more items
				available in the queue.}
	{notes:
		{note:  A thread waiting for data on a queue will be resumed and return
				RV_QUEUE_ERROR_STOPPED if the queue is stopped.}
		{note:  If the buffer is smaller than the item in the queue, the data
				copied into the buffer will be truncated.}
	}
}
$*/
/*$
{function:
	{name: RvQueueSend}
	{superpackage: Queue}
	{include: rvqueue.h}
	{description:
		{p: Puts an item into a queue.}
	}
	{proto: RvStatus RvQueueSend(RvQueue *queue, void *buf, RvSize_t bufsize, RvInt priority, RvBool wait);}
	{params:
		{param: {n: queue}      {d: Pointer to queue object where item should be placed.}}
		{param: {n: buf}        {d: Pointer to buffer that contains the item.}}
		{param: {n: bufsize}    {d: Size of the item that buf points to.}}
		{param: {n: priority}   {d: Set to RV_QUEUE_SEND_NORMAL to put item at the end of the queue.
									Set to RV_QUEUE_SEND_URGENT to put the item at the front
									of the queue.}}
		{param: {n: wait}       {d: Set to RV_QUEUE_WAIT if thread should wait until space is available
									in the queue for the item. If set to RV_QUEUE_NOWAIT,
									RV_QUEUE_ERROR_FULL will be returned if there is no space in the queue.}}
	}
	{returns:   RV_OK if successful otherwise an error code. An error code of RV_QUEUE_ERROR_STOPPED
				indicates that the queue has been permanently stopped and no more items are allowed
				to be put in the queue.}
	{notes:
		{note:  A thread waiting to put data on a queue will be resumed and return
				RV_QUEUE_ERROR_STOPPED if the queue is stopped.}
	}
}
$*/
/*$
{function:
	{name: RvQueueStop}
	{superpackage: Queue}
	{include: rvqueue.h}
	{description:
		{p: Permanently stops a queue. No more items will be allowed to be put on the queue.
			Threads waiting to get items from the queue or waiting to put items onto the queue
			will be resumed (and return with an error code indicating that the queue has been
			stopped). Items already on the queue will still be available.}
	}
	{proto: RvStatus RvQueueStop(RvQueue *queue);}
	{params:
		{param: {n: queue} {d: Pointer to queue object to be stopped.}}
	}
	{returns:   RV_OK if successful otherwise an error code.}
	{notes:
		{note:  When a queue is stopped it is permanent, there is no way to undo it.}
	}
}
$*/
/*$
{function:
	{name: RvQueueClear}
	{superpackage: Queue}
	{include: rvqueue.h}
	{description:
		{p: Clears all items from a queue.}
	}
	{proto: RvStatus RvQueueClear(RvQueue *queue);}
	{params:
		{param: {n: queue} {d: Pointer to queue object to be cleared.}}
	}
	{returns:   RV_OK if successful otherwise an error code.}
	{notes:
		{note:  Stopped queues may be cleared.}
	}
}
$*/
/*$
{function:
	{name: RvQueueIsStopped}
	{superpackage: Queue}
	{include: rvqueue.h}
	{description:
		{p: Checks to see if a queue has been stopped.}
	}
	{proto: RvBool RvQueueIsStopped(RvQueue *queue);}
	{params:
		{param: {n: queue} {d: Pointer to queue object to check.}}
	}
	{returns: Returns RV_TRUE if the queue has been stopped, RV_FALSE otherwise.}
}
$*/
/*$
{function:
	{name: RvQueueSize}
	{superpackage: Queue}
	{include: rvqueue.h}
	{description:
		{p: Finds out the size of the queue.}
	}
	{proto: RvSize_t RvQueueSize(RvQueue *queue);}
	{params:
		{param: {n: queue} {d: Pointer to queue object to check.}}
	}
	{returns: The maximum number of items that the queue can hold.}
}
$*/
/*$
{function:
	{name: RvQueueItems}
	{superpackage: Queue}
	{include: rvqueue.h}
	{description:
		{p: Finds out the number of items currently on the queue.}
	}
	{proto: RvSize_t RvQueueItems(RvQueue *queue);}
	{params:
		{param: {n: queue} {d: Pointer to queue object to check.}}
	}
	{returns: The current number of items on the queue.}
}
$*/

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产片一区二区| 日韩一区国产二区欧美三区| 老汉av免费一区二区三区 | 一区二区在线观看视频在线观看| 欧美精品一区二区三区很污很色的 | 日韩三级av在线播放| 欧美色综合网站| 欧美日韩一区二区电影| 欧美狂野另类xxxxoooo| 欧美精品免费视频| 欧美成人免费网站| 久久久久亚洲蜜桃| 国产精品国产a级| 亚洲免费在线观看| 日韩高清在线一区| 国产福利不卡视频| 95精品视频在线| 欧美亚洲尤物久久| 精品欧美一区二区久久| 中文字幕免费不卡| 亚洲成人免费影院| 国产伦精品一区二区三区免费迷| 日韩和欧美一区二区三区| 六月丁香婷婷色狠狠久久| eeuss鲁一区二区三区| 日韩一级二级三级精品视频| 亚洲国产va精品久久久不卡综合| caoporm超碰国产精品| 中文欧美字幕免费| 懂色一区二区三区免费观看| 久久久国际精品| 国产麻豆精品theporn| 久久色在线观看| 国产精品69毛片高清亚洲| 欧美精品一区二区在线观看| 国产精品白丝av| 国产欧美一区二区三区鸳鸯浴 | 香蕉加勒比综合久久| 欧美色男人天堂| 亚洲成人动漫精品| 日韩亚洲欧美综合| 国产精品 日产精品 欧美精品| 久久人人超碰精品| 丁香婷婷综合激情五月色| 中文字幕精品综合| 91久久人澡人人添人人爽欧美 | 国产精品视频免费| 色综合婷婷久久| 午夜久久久久久| 欧美精品一区视频| 91视频免费看| 五月婷婷久久综合| 久久这里都是精品| 99视频超级精品| 日韩国产欧美在线播放| 久久久亚洲精华液精华液精华液| 成人激情免费视频| 午夜电影网亚洲视频| 国产亚洲一区二区三区四区 | 亚洲另类一区二区| 欧美日韩卡一卡二| 国产一区免费电影| 亚洲理论在线观看| 精品少妇一区二区三区视频免付费| 国产成人免费视频精品含羞草妖精| 中国色在线观看另类| 欧美影院一区二区三区| 国模少妇一区二区三区| 亚洲欧洲日韩一区二区三区| 91麻豆精品国产91久久久资源速度| 国产在线国偷精品产拍免费yy| 亚洲欧美国产毛片在线| 欧美zozo另类异族| 欧洲一区二区三区在线| 国产一区二区三区最好精华液| 亚洲欧美成人一区二区三区| 日韩精品专区在线影院重磅| 色婷婷亚洲综合| 国产精品99久| 久久机这里只有精品| 亚洲精品视频在线观看网站| 精品乱码亚洲一区二区不卡| 欧美在线观看视频在线| 国产成人av福利| 久热成人在线视频| 亚洲午夜久久久久久久久电影院 | 精品久久久影院| 91国偷自产一区二区三区成为亚洲经典 | 欧美大度的电影原声| 日本精品一区二区三区高清| 国产成人av一区二区三区在线| 日本免费新一区视频| 亚洲一区二区av电影| 国产精品色一区二区三区| 欧美xxx久久| 7777精品伊人久久久大香线蕉完整版| 成人黄色免费短视频| 国产剧情av麻豆香蕉精品| 久久99精品一区二区三区三区| 五月婷婷综合网| 日韩有码一区二区三区| 亚洲欧美日韩在线| 1024成人网| 1区2区3区国产精品| 国产偷国产偷亚洲高清人白洁| 日韩欧美中文字幕制服| 日韩欧美一级二级三级久久久| 欧美三级韩国三级日本一级| 在线观看亚洲专区| 色婷婷av一区二区三区大白胸| 91麻豆免费观看| 色综合色综合色综合色综合色综合| 成人性视频免费网站| 成人污视频在线观看| 成人h动漫精品| 91最新地址在线播放| 日本久久电影网| 欧美精品亚洲二区| 日韩欧美一区二区三区在线| 精品少妇一区二区三区在线播放 | 欧美电视剧在线看免费| 日韩欧美一级二级| 久久精品视频免费观看| 亚洲国产高清aⅴ视频| 国产精品久久午夜| 亚洲免费av网站| 香蕉久久一区二区不卡无毒影院| 午夜精品一区二区三区电影天堂| 日韩高清中文字幕一区| 国内精品久久久久影院薰衣草| 高清在线观看日韩| 99re66热这里只有精品3直播 | 色偷偷成人一区二区三区91| 日本韩国一区二区三区视频| 欧美日韩一区久久| 久久亚洲精品小早川怜子| 亚洲色图视频免费播放| 亚洲一区二区三区四区在线观看 | 一区二区三区欧美日韩| 日韩综合小视频| 国产精品一级在线| 91福利小视频| 精品国产免费视频| 国产精品美女久久久久久久| 亚洲成人av在线电影| 国产精品一区二区三区网站| 色婷婷av一区二区三区软件| 日韩欧美国产一二三区| 国产农村妇女精品| 亚洲一区二区视频在线观看| 久久精品国产精品亚洲红杏| 99精品欧美一区二区蜜桃免费| 欧美日韩在线三区| 国产欧美精品日韩区二区麻豆天美| 亚洲制服欧美中文字幕中文字幕| 蜜臀av一区二区在线观看| 国产精品一区一区| 欧美电影一区二区| 亚洲欧洲日韩综合一区二区| 麻豆精品精品国产自在97香蕉 | 成人免费看的视频| 欧美一区二区播放| 亚洲女与黑人做爰| 国产一区二区三区精品视频| 欧美午夜精品一区二区蜜桃| 国产午夜精品一区二区三区嫩草 | 在线这里只有精品| 久久色在线视频| 日本麻豆一区二区三区视频| 波多野结衣中文字幕一区| 精品处破学生在线二十三| 一区二区三区欧美日| 成人自拍视频在线| 精品国产乱子伦一区| 五月天精品一区二区三区| 99久久精品免费精品国产| 久久日韩粉嫩一区二区三区| 日韩激情视频网站| 欧美网站大全在线观看| 亚洲色图一区二区三区| 国产成人午夜精品5599| 日韩欧美二区三区| 日本不卡一二三| 欧美疯狂做受xxxx富婆| 亚洲精品国产第一综合99久久| 成人毛片视频在线观看| 国产午夜久久久久| 国产成人免费网站| 国产女人aaa级久久久级| 国产一区二区不卡老阿姨| 精品欧美乱码久久久久久1区2区| 日韩av网站在线观看| 欧美一区二区私人影院日本| 午夜伦理一区二区| 欧美日韩国产精选| 肉肉av福利一精品导航| 91精品国模一区二区三区| 午夜天堂影视香蕉久久| 欧美色欧美亚洲另类二区| 午夜久久电影网|