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

📄 ss_task.x

📁 中国石油二期加油站IC系统后台通讯软件
💻 X
字号:

/********************************************************************20**
 
     Name:     System Services -- Task Management
 
     Type:     C include file
 
     Desc:     Data structure definitions required for the task mgmt.
 
     File:     ss_task.x
 
     Sid:      ss_task.x 1.2  -  08/11/98 10:47:33
 
     Prg:      kp
 
*********************************************************************21*/


#ifndef __SSTASKX__
#define __SSTASKX__

#ifdef __cplusplus
extern "C" {
#endif


/* miscellaneous types */
    typedef U8                      SsCntr;
    typedef U8                      SsIdx;


/* forward declaration */
    typedef struct ssSTskEntry      SsSTskEntry;


/* individual entry in the table of TAPA tasks */
    typedef struct ssTTskEntry
    {
        SsdTTskEntry dep;                    /* implementation specific */


        Bool         used;                   /* entry is used? */
        Ent          ent;                    /* task entity ID */
        Inst         inst;                   /* task instance ID */
        Ttype        tskType;                /* normal/permanent/driver */
        Prior        tskPrior;               /* priority of task */
        PAIFS16      initTsk;                /* initialization function */
        ActvTsk      actvTsk;                /* activation function */

        SsSTskEntry  *sTsk;                  /* system task */


        SsIdx        nxt;                    /* table implementation */

    } SsTTskEntry;



/* individual entry in the table of system tasks */
    struct ssSTskEntry
    {
        SsdSTskEntry dep;                    /* implementation specific */


        Bool         used;                   /* entry is used or not */
        Bool         termPend;               /* termination pending */
        SSTskId      tskId;                  /* system task ID */
        SSTskPrior   tskPrior;               /* system task priority */
        SsDmndQ      dQ;                     /* demand queue */


        /* TAPA task information: the TAPA tasks being handled by
         *  this system task.
         */
        SsIdx        tTsks[SS_MAX_TTSKS];    /* indices into TAPA task table */
        SsCntr       numTTsks;               /* count of TAPA tasks */
        SLockId      lock;                   /* lock for table access */


        SsIdx        nxt;                    /* table implementation */

    };


#ifdef __cplusplus
}
#endif

#endif  /*  __SSTASKX__  */


  
/********************************************************************30**

         End of file: ss_task.x 1.2  -  08/11/98 10:47:33

*********************************************************************31*/


/********************************************************************40**

        Notes:

*********************************************************************41*/

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

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

   
/********************************************************************60**

        Revision history:

*********************************************************************61*/

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

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

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

⌨️ 快捷键说明

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