📄 txc_os_queue.h
字号:
/*--------------------------------------------------------------------------
******* ****
* ***** ** * * * * * * ***** **** * *
* * * * * ** * * * * * * * * * *
* * * * * * * * **** * * * * * ******
* ***** ****** * * * * * ** * * * * * *
* * * * * * ** * * ** ** * * * * * *
* * * * * * * **** * * * * **** * *
Proprietary and Confidential
This program is made available only to customers and prospective customers
of TranSwitch Corporation under license and may be used only with TranSwitch
semi-conductor products.
Copyright(c) 2004 TranSwitch Inc.
|-----------------------------------------------------------------------|
| |
| ******** ****** |
| ** ** ** ** |
| ** ** ** * |
| ** ** ** |
| ** ** ** |
| ** ** ** |
| ** ** * *** |
| ** ** ** ** |
| ******** ****** |
| |
|-----------------------------------------------------------------------|
| Queue Header File |
|-----------------------------------------------------------------------|
| |
| Workfile: txc_os_queue.h |
| |
| Description: this file contains all defines for queue managements |
| |
-------------------------------------------------------------------------
Revision History
-------------------------------------------------------------------------
Rev # Date Author Description
----- ------ ------- -----------
1.0 06-Feb-01 L. Olah Initial Revision.
-----------------------------------------------------------------------*/
#ifndef TXC_OS_QUEUE_H
#define TXC_OS_QUEUE_H
/***********************************************************************
** Defines **
***********************************************************************/
/* delay times */
#define TXC_OS_QUEUE_WAIT_FOREVER 0xffffffff
#define TXC_OS_QUEUE_WAIT_NEVER 0
#define TXC_VXWORKS_MSG_LEN 4
/***********************************************************************
** DataStructures **
***********************************************************************/
/***********************************************************************
** Exported Variables **
***********************************************************************/
/***********************************************************************
** Function Prototypes **
***********************************************************************/
TXC_U16BIT TXC_CreateQueue(TXC_QUEUE_ID* queueIdPtr, TXC_U16BIT maxDepth,
TXC_U16BIT lowWaterMark, TXC_U16BIT highWaterMark, const char * name);
TXC_U16BIT TXC_Enqueue(TXC_QUEUE_ID queueId, TXC_VOID_PTR bufferPtr);
TXC_U16BIT TXC_Dequeue(TXC_QUEUE_ID queueId, TXC_VOID_PTR * bufferPtrPtr,
TXC_U32BIT milliSecondWait);
TXC_U16BIT TXC_DeleteQueue(TXC_QUEUE_ID queueId);
#endif /* TXC_OS_QUEUE_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -