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

📄 ss_queue.h

📁 中国石油二期加油站IC系统后台通讯软件
💻 H
字号:

/********************************************************************20**
 
     Name:     System Services -- Queueing
 
     Type:     C Include file
 
     Desc:     System Services queuing functions.
 
     File:     ss_queue.h
 
     Sid:      ss_queue.h 1.3  -  10/14/98 14:18:53
 
     Prg:      bsr
  
*********************************************************************21*/


#ifndef __SSQUEUEH__
#define __SSQUEUEH__

#ifdef __cplusplus
extern "C" {
#endif


#define SS_MAX_TASK_PRI         4               /* maximum task priorities */
#define SS_MAX_MSG_PRI          4               /* maximum msg priorities */


#define SS_DQ_FIRST             0               /* queue at beginning */
#define SS_DQ_LAST              1               /* queue at end */


#define SS_MAX_NUM_DQ           (SS_MAX_TASK_PRI * SS_MAX_MSG_PRI)

    /* number of queues */
#define SS_DQ_BIT_MASK_LEN      ((SS_MAX_NUM_DQ - 1) /8 + 1)

    /* length of bitmask */

#define SS_MAX_DQ_PRIOR         (SS_MAX_TASK_PRI * SS_MAX_MSG_PRI) 


/* macros for first and last calls */
#define ssDmndQPutFirst(dQueue, mBuf, priority) \
        ssDmndQPut(dQueue, mBuf, (Prior)priority, SS_DQ_FIRST)

#define ssDmndQPutLast(dQueue, mBuf, priority) \
        ssDmndQPut(dQueue, mBuf, (Prior)priority, SS_DQ_LAST)

#define ssDmndQGetFirst(dQueue, mBuf) \
        ssDmndQGet(dQueue, mBuf, SS_DQ_FIRST)

#define ssDmndQGetLast(dQueue, mBuf) \
         ssDmndQGet(dQueue, mBuf, SS_DQ_LAST)


#ifdef __cplusplus
}
#endif

#endif /* __SSQUEUEH__ */



/********************************************************************30**
  
         End of file: ss_queue.h 1.3  -  10/14/98 14:18:53
  
*********************************************************************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

1.3          ---      kp   1. Corrected a typo

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

⌨️ 快捷键说明

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