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

📄 ss_queue.x

📁 中国石油二期加油站IC系统后台通讯软件
💻 X
字号:

/********************************************************************20**
 
     Name:     System Services -- Queueing
 
     Type:     C include file
 
     Desc:     System Services queuing functions.
 
     File:     ss_queue.x
 
     Sid:      ss_queue.x 1.2  -  08/11/98 10:47:19
 
     Prg:      bsr
  
*********************************************************************21*/


#ifndef __SSQUEUEX__
#define __SSQUEUEX__

#ifdef __cplusplus
extern "C" {
#endif


/* demand queue structure */
    typedef struct ssDmndQ
    {
        SsSemaId   dmndQSema;                        /* lock for queue access */
        SLockId    dmndQLock[SS_DQ_BIT_MASK_LEN];    /* lock for each byte in 
                                                      * bitmask */
        Queue      queue[SS_MAX_NUM_DQ];             /* the queues */
        U8         bitMask[SS_DQ_BIT_MASK_LEN];      /* bit mask */
    } SsDmndQ;



/* functions */
    EXTERN S16  ssInitDmndQ       ARGS((SsDmndQ *queue));
    EXTERN S16  ssDestroyDmndQ    ARGS((SsDmndQ *queue));
    EXTERN S16  ssDmndQPut        ARGS((SsDmndQ *queue, Buffer *mBuf, \
                                        Prior prior, Order order));
    EXTERN S16  ssDmndQGet        ARGS((SsDmndQ *queue, Buffer **mBuf, \
                                        Order order));
    EXTERN S16  ssFndLenDmndQ     ARGS((SsDmndQ *queue, Prior prior, QLen *len));


#ifdef __cplusplus
}
#endif

#endif /* __SSQUEUEX__ */


/********************************************************************30**
  
         End of file: ss_queue.x 1.2  -  08/11/98 10:47:19
  
*********************************************************************31*/

  
/********************************************************************40**
  
        Notes: 
  
*********************************************************************41*/

/********************************************************************50**

*********************************************************************51*/

   
/********************************************************************60**
  
        Revision history:
  
*********************************************************************61*/

/********************************************************************90**
 
     ver       pat    init                  description
------------ -------- ---- ----------------------------------------------
1.1          ---      bsr  1. initial release.

1.2          ---      kp   1. C++ compilable, cosmetic changes

*********************************************************************91*/

⌨️ 快捷键说明

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