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

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

?? mbs.c

?? 不可多得Nucleus plus的源代碼程序
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*************************************************************************/
/*                                                                       */
/*        Copyright (c) 1993-1996 Accelerated Technology, Inc.           */
/*                                                                       */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the      */
/* subject matter of this material.  All manufacturing, reproduction,    */
/* use, and sales rights pertaining to this subject matter are governed  */
/* by the license agreement.  The recipient of this software implicitly  */
/* accepts the terms of the license.                                     */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                            VERSION          */
/*                                                                       */
/*      mbs.c                                           PLUS  1.2        */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      MB - Mailbox Management                                          */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains the core routines for the Mailbox management  */
/*      component.                                                       */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      William E. Lamie, Accelerated Technology, Inc.                   */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      MBS_Reset_Mailbox                   Reset a mailbox              */
/*      MBS_Broadcast_To_Mailbox            Broadcast a mailbox message  */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      cs_extr.h                           Common Service functions     */
/*      tc_extr.h                           Thread Control functions     */
/*      mb_extr.h                           Mailbox functions            */
/*      hi_extr.h                           History functions            */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         NAME            DATE                    REMARKS               */
/*                                                                       */
/*      W. Lamie        03-01-1994      Initial version of supplemental  */
/*                                        mailbox service file,          */
/*                                        version 1.1                    */
/*      R. Pfaff -                                                       */
/*      D. Lamie        03-18-1994      Verified version 1.1             */
/*      M.Q. Qian       04-17-1996      updated to version 1.2           */
/*                                                                       */
/*************************************************************************/
#define         NU_SOURCE_FILE


#include        "cs_extr.h"                 /* Common service functions  */
#include        "tc_extr.h"                 /* Thread control functions  */
#include        "mb_extr.h"                 /* Mailbox functions         */
#include        "hi_extr.h"                 /* History functions         */


/* Define internal component function prototypes.  */

VOID    MBC_Cleanup(VOID *information);


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      MBS_Reset_Mailbox                                                */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function resets a mailbox back to the initial state.  Any   */
/*      message in the mailbox is discarded.  Also, all tasks suspended  */
/*      on the mailbox are resumed with the reset completion status.     */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      William E. Lamie, Accelerated Technology, Inc.                   */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      MBSE_Reset_Mailbox                  Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      TCC_Resume_Task                     Resume a suspended task      */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Control_To_System               Transfer control to system   */
/*      TCT_System_Protect                  Protect mailbox              */
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      mailbox_ptr                         Mailbox control block pointer*/
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                                                       */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         NAME            DATE                    REMARKS               */
/*                                                                       */
/*      W. Lamie        03-01-1993      Created initial version 1.0      */
/*      D. Lamie        04-19-1993      Verified version 1.0             */
/*      W. Lamie        03-01-1994      Changed function interface to    */
/*                                        match the prototype, added     */
/*                                        register variable logic,       */
/*                                        optimized protection logic,    */
/*                                        resulting in version 1.1       */
/*      R. Pfaff -                                                       */
/*      D. Lamie        03-18-1994      Verified version 1.1             */
/*                                                                       */
/*************************************************************************/
STATUS  MBS_Reset_Mailbox(NU_MAILBOX *mailbox_ptr)
{

R1 MB_MCB      *mailbox;                    /* Mailbox control block ptr */
R2 MB_SUSPEND  *suspend_ptr;                /* Suspend block pointer     */
MB_SUSPEND     *next_ptr;                   /* Next suspend block pointer*/
STATUS          preempt;                    /* Status for resume call    */



    /* Move input mailbox pointer into internal pointer.  */
    mailbox =  (MB_MCB *) mailbox_ptr;


#ifdef  NU_ENABLE_STACK_CHECK

    /* Call stack checking function to check for an overflow condition.  */
    TCT_Check_Stack();

#endif

#ifdef  NU_ENABLE_HISTORY

    /* Make an entry that corresponds to this function in the system history
       log.  */
    HIC_Make_History_Entry(NU_RESET_MAILBOX_ID, (UNSIGNED) mailbox, 
                                        (UNSIGNED) 0, (UNSIGNED) 0);

#endif

    /* Protect against access to the mailbox.  */
    TCT_System_Protect();
    
    /* Pickup the suspended task pointer list.  */
    suspend_ptr =  mailbox -> mb_suspension_list;

    /* Walk the chain task(s) currently suspended on the mailbox.  */
    preempt =  0;
    while (suspend_ptr)
    {
    
        /* Resume the suspended task.  Insure that the status returned is
           NU_MAILBOX_RESET.  */
        suspend_ptr -> mb_return_status =  NU_MAILBOX_RESET;
                                                
        /* Point to the next suspend structure in the link.  */
        next_ptr =  (MB_SUSPEND *) (suspend_ptr -> mb_suspend_link.cs_next);
        
        /* Resume the specified task.  */
        preempt =  preempt | 
                TCC_Resume_Task((NU_TASK *) suspend_ptr -> mb_suspended_task,
                                                        NU_MAILBOX_SUSPEND);
        
        /* Determine if the next is the same as the head pointer.  */
        if (next_ptr == mailbox -> mb_suspension_list)
        
            /* Clear the suspension pointer to signal the end of the list
               traversal.  */
            suspend_ptr =  NU_NULL;
        else
        
            /* Position the suspend pointer to the next suspend block.  */
            suspend_ptr =  next_ptr;
    }

    /* Initialize the mailbox.  */
    mailbox -> mb_message_present =  NU_FALSE;
    mailbox -> mb_tasks_waiting =    0;
    mailbox -> mb_suspension_list =  NU_NULL;

    /* Determine if preemption needs to occur.  */
    if (preempt)
    
        /* Transfer control to system to facilitate preemption.  */
        TCT_Control_To_System();

    /* Release protection.  */
    TCT_Unprotect();

    /* Return a successful completion.  */
    return(NU_SUCCESS);
}


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      MBS_Broadcast_To_Mailbox                                         */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function sends a message to all tasks currently waiting for */
/*      a message from the mailbox.  If no tasks are waiting, this       */
/*      service behaves like a normal send message.                      */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      William E. Lamie, Accelerated Technology, Inc.                   */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      MBSE_Broadcast_To_Mailbox           Broadcast to a mailbox       */
/*                                                                       */
/* CALLS                                                                 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区二区三区老鸭窝| 亚洲一区二区在线免费看| 日韩一区有码在线| 免费观看成人鲁鲁鲁鲁鲁视频| 成人美女视频在线看| 日韩一级视频免费观看在线| 亚洲欧美成aⅴ人在线观看| 日本va欧美va瓶| 欧美亚洲禁片免费| 国产精品国产三级国产三级人妇| 蜜桃精品视频在线| 欧美日韩一级黄| 亚洲激情成人在线| 成人精品gif动图一区| 精品乱人伦小说| 久久99九九99精品| 欧美男生操女生| 一区二区三区中文字幕精品精品| 成人免费福利片| 日本一区二区综合亚洲| 国产在线看一区| 欧美不卡123| 久久99精品久久久久久动态图| 欧美天堂亚洲电影院在线播放| 亚洲三级在线观看| 99热99精品| 国产精品电影一区二区| 成人av中文字幕| 国产精品久久夜| 成人app软件下载大全免费| 欧美高清在线精品一区| 国产成人精品www牛牛影视| 精品成人佐山爱一区二区| 三级不卡在线观看| 3751色影院一区二区三区| 日日摸夜夜添夜夜添国产精品| 欧美视频在线一区| 视频一区在线视频| 日韩欧美专区在线| 狠狠狠色丁香婷婷综合激情| 久久久亚洲精品石原莉奈| 国产精品99久久久| 国产精品的网站| 色综合久久久久久久久久久| 亚洲综合在线观看视频| 欧美三级韩国三级日本三斤| 首页亚洲欧美制服丝腿| 精品国精品国产| 国产白丝精品91爽爽久久| 亚洲私人黄色宅男| 欧美日韩五月天| 久久99久久精品| 欧美激情综合网| 欧美影院一区二区| 麻豆专区一区二区三区四区五区| 久久久久久**毛片大全| 一本到三区不卡视频| 丁香一区二区三区| 国产精品美女久久久久久久久久久 | 秋霞成人午夜伦在线观看| 日韩一区二区中文字幕| 国产福利91精品一区二区三区| 亚洲图片你懂的| 91精品国产综合久久婷婷香蕉| 精品一区二区三区日韩| 自拍偷在线精品自拍偷无码专区| 欧美色图天堂网| 国产美女视频一区| 一区二区三区免费在线观看| 精品乱码亚洲一区二区不卡| 不卡的av在线播放| 美日韩一区二区| 亚洲图片激情小说| 精品欧美一区二区三区精品久久| 99视频精品在线| 日本中文字幕一区| 亚洲天堂免费看| 精品国产91洋老外米糕| 欧美制服丝袜第一页| 亚洲国产高清在线| 欧美日韩一区三区四区| 国产一区二区0| 午夜精品成人在线视频| 国产精品美女一区二区| 91精品福利在线一区二区三区| gogo大胆日本视频一区| 毛片av中文字幕一区二区| 一区二区三区资源| 日本一区二区不卡视频| 日韩免费高清视频| 久久综合五月天婷婷伊人| 在线观看91视频| 97精品国产露脸对白| 国产一区二区三区久久悠悠色av | 欧美视频在线一区二区三区| 成人性生交大片免费看在线播放| 调教+趴+乳夹+国产+精品| 亚洲欧美二区三区| 国产精品网站一区| 久久影音资源网| 日韩欧美一级二级三级| 91精品国产91热久久久做人人| 在线中文字幕一区| 色偷偷一区二区三区| 成人免费毛片app| 国产69精品久久777的优势| 久久99久国产精品黄毛片色诱| 日韩av一区二| 亚洲国产精品自拍| 亚洲电影在线播放| 亚洲国产美女搞黄色| 亚洲国产精品嫩草影院| 亚洲自拍欧美精品| 一区二区三区不卡视频| 亚洲精品视频免费观看| 亚洲精品视频在线| 亚洲国产综合色| 亚洲在线观看免费视频| 亚洲国产精品久久人人爱| 亚洲国产一区二区视频| 亚洲gay无套男同| 日本视频在线一区| 蜜臀久久99精品久久久久久9 | 亚洲永久精品国产| 亚洲尤物在线视频观看| 亚洲成人免费在线| 青青草97国产精品免费观看无弹窗版 | 国产欧美视频一区二区| 国产精品色在线观看| 自拍偷在线精品自拍偷无码专区 | 欧美xxxxxxxx| 国产日韩欧美综合一区| 中文字幕在线观看不卡视频| 伊人夜夜躁av伊人久久| 视频一区二区三区入口| 国内精品伊人久久久久av影院| 国产精品99久久不卡二区| av亚洲精华国产精华| 色琪琪一区二区三区亚洲区| 欧美日本国产一区| 精品国产乱码久久久久久老虎 | 成人晚上爱看视频| 色欧美88888久久久久久影院| 欧美群妇大交群中文字幕| 欧美大片一区二区三区| 中文乱码免费一区二区| 亚洲最新视频在线播放| 久草这里只有精品视频| 成人av在线网| 欧美日韩高清在线| 久久久一区二区| 亚洲在线一区二区三区| 国产一区二区福利视频| 日本道精品一区二区三区 | 欧美日韩久久久久久| 2021国产精品久久精品| 亚洲影视在线播放| 国产精品一线二线三线| 欧美日韩电影一区| 欧美国产一区在线| 青青草国产精品97视觉盛宴| 99这里都是精品| 日韩欧美一级二级| 亚洲综合精品久久| 成人福利视频在线| 精品少妇一区二区三区在线视频| 亚洲精品第1页| 国产伦精品一区二区三区视频青涩 | 欧美三片在线视频观看| 亚洲精品网站在线观看| 国产综合久久久久久鬼色| 在线看不卡av| 亚洲欧洲性图库| 国产乱码精品一品二品| 欧美一区二区三区四区五区 | 色综合久久天天综合网| 久久亚洲捆绑美女| 日精品一区二区| 在线观看视频一区二区欧美日韩| 国产亚洲福利社区一区| 久久国产尿小便嘘嘘尿| 欧美三级电影网| 一二三区精品福利视频| 99久久国产综合精品女不卡| 久久久综合精品| 国产一区二区伦理| 久久亚洲欧美国产精品乐播| 免费成人av资源网| 欧美一区二区三区爱爱| 丝袜国产日韩另类美女| 欧美精品日韩一区| 亚洲国产日日夜夜| 欧美三区在线观看| 亚洲国产精品尤物yw在线观看| 日本韩国精品在线| 日韩欧美久久久| 日韩午夜精品视频| 麻豆精品在线播放| 欧美一区二区三区成人| 青青草伊人久久|