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

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

?? mbc.c

?? nucleas source code
?? C
?? 第 1 頁 / 共 4 頁
字號:
/*************************************************************************/
/*                                                                       */
/*               Copyright Mentor Graphics Corporation 2002              */
/*                         All Rights Reserved.                          */
/*                                                                       */
/* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS  */
/* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS   */
/* SUBJECT TO LICENSE TERMS.                                             */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                               VERSION       */
/*                                                                       */
/*      mbc.c                                          Nucleus PLUS 1.14 */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      MB - Mailbox Management                                          */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains the core routines for the Mailbox management  */
/*      component.                                                       */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      MBC_Create_Mailbox                  Create a mailbox             */
/*      MBC_Delete_Mailbox                  Delete a mailbox             */
/*      MBC_Send_To_Mailbox                 Send a mailbox message       */
/*      MBC_Receive_From_Mailbox            Receive a mailbox message    */
/*      MBC_Cleanup                         Cleanup on timeout or a      */
/*                                          terminate condition          */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      cs_extr.h                           Common Service functions     */
/*      tc_extr.h                           Thread Control functions     */
/*      mb_extr.h                           Mailbox functions            */
/*      hi_extr.h                           History functions            */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      08-09-1993      Corrected pointer retrieval                      */
/*                      loop, resulting in version 1.0a                  */
/*      08-09-1993      Verified version 1.0a                            */
/*      03-01-1994      Moved non-core functions into                    */
/*                      supplemental files, changed                      */
/*                      function interfaces to match                     */
/*                      those in prototype, added                        */
/*                      register options, changed                        */
/*                      protection logic to reduce                       */
/*                      overhead, resulting in                           */
/*                      version 1.1                                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      04-17-1996      updated to version 1.2                           */
/*      03-24-1998      Released version 1.3                             */
/*      03-26-1999      Released 1.11m (new release                      */
/*                        numbering scheme)                              */
/*      04-17-2002      Released version 1.13m                           */
/*      11-07-2002      Released version 1.14                            */
/*************************************************************************/
#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         */
#include        "profiler.h"                /* ProView interface         */

/* Define external inner-component global data references.  */

extern CS_NODE         *MBD_Created_Mailboxes_List;
extern UNSIGNED         MBD_Total_Mailboxes;
extern TC_PROTECT       MBD_List_Protect;


/* Define internal component function prototypes.  */

VOID    MBC_Cleanup(VOID *information);


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      MBC_Create_Mailbox                                               */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function creates a mailbox and then places it on the list   */
/*      of created mailboxes.                                            */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      MBCE_Create_Mailbox                 Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Place_On_List                   Add node to linked-list      */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Protect                         Data structure protect       */
/*      TCT_Unprotect                       Un-protect data structure    */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      mailbox_ptr                         Mailbox control block pointer*/
/*      name                                Mailbox name                 */
/*      suspend_type                        Suspension type              */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                                                       */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*        DATE                    REMARKS                                */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Changed function interface to                    */
/*                      match the prototype, added                       */
/*                      register variable logic,                         */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  MBC_Create_Mailbox(NU_MAILBOX *mailbox_ptr, CHAR *name,
                                                OPTION suspend_type)
{

R1 MB_MCB      *mailbox;                    /* Mailbox control block ptr */
INT             i;                          /* Working index variable    */
NU_SUPERV_USER_VARIABLES

    /* Switch to supervisor mode */
    NU_SUPERVISOR_MODE();

    /* 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_CREATE_MAILBOX_ID, (UNSIGNED) mailbox,
                                (UNSIGNED) name, (UNSIGNED) suspend_type);

#endif

    /* First, clear the mailbox ID just in case it is an old Mailbox
       Control Block.  */
    mailbox -> mb_id =             0;

    /* Fill in the mailbox name.  */
    for (i = 0; i < NU_MAX_NAME; i++)
        mailbox -> mb_name[i] =  name[i];

    /* Clear the message present flag- initial it to "no message present." */
    mailbox -> mb_message_present =  NU_FALSE;

    /* Setup the mailbox suspension type.  */
    if (suspend_type == NU_FIFO)

        /* FIFO suspension is selected, setup the flag accordingly.  */
        mailbox -> mb_fifo_suspend =  NU_TRUE;
    else

        /* Priority suspension is selected.  */
        mailbox -> mb_fifo_suspend =  NU_FALSE;

    /* Clear the suspension list pointer.  */
    mailbox -> mb_suspension_list =  NU_NULL;

    /* Clear the number of tasks waiting on the mailbox counter.  */
    mailbox -> mb_tasks_waiting =  0;

    /* Initialize link pointers.  */
    mailbox -> mb_created.cs_previous =    NU_NULL;
    mailbox -> mb_created.cs_next =        NU_NULL;

    /* Protect against access to the list of created mailboxes.  */
    TCT_Protect(&MBD_List_Protect);

    /* At this point the mailbox is completely built.  The ID can now be
       set and it can be linked into the created mailbox list.  */
    mailbox -> mb_id =                     MB_MAILBOX_ID;

    /* Link the mailbox into the list of created mailboxes and increment the
       total number of mailboxes in the system.  */
    CSC_Place_On_List(&MBD_Created_Mailboxes_List, &(mailbox -> mb_created));
    MBD_Total_Mailboxes++;

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpMailBox(RT_PROF_CREATE_MAILBOX,mailbox,RT_PROF_OK);
#endif /* INCLUDE_PROVIEW */
    /* Release protection against access to the list of created mailboxes.  */
    TCT_Unprotect();

    /* Return to user mode */
    NU_USER_MODE();

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


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      MBC_Delete_Mailbox                                               */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function deletes a mailbox and removes it from the list of  */
/*      created mailboxes.  All tasks suspended on the mailbox are       */
/*      resumed.  Note that this function does not free the memory       */
/*      associated with the mailbox control block.                       */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      MBCE_Delete_Mailbox                 Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Remove_From_List                Remove node from list        */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色图一区二区三区| 亚洲成人av一区| 成人一级片在线观看| 久久久久久久久免费| 国产麻豆精品视频| 欧美激情在线一区二区三区| 成人妖精视频yjsp地址| 欧美国产欧美综合| 北条麻妃国产九九精品视频| 中文字幕在线播放不卡一区| av在线免费不卡| 亚洲一区二区黄色| 欧美一区二区三区在| 国产精品自产自拍| 综合激情成人伊人| 欧美日韩在线电影| 久久草av在线| 中文幕一区二区三区久久蜜桃| 一本色道a无线码一区v| 亚洲123区在线观看| 久久婷婷久久一区二区三区| www.色精品| 亚洲国产日韩一级| 久久午夜老司机| 色哟哟一区二区三区| 青青青伊人色综合久久| 国产女人水真多18毛片18精品视频| 色婷婷久久99综合精品jk白丝| 日韩精品乱码免费| 国产精品乱人伦一区二区| 欧美日韩久久不卡| 国产a精品视频| 亚洲一级二级在线| 久久这里只精品最新地址| 色婷婷av一区| 精品一区二区三区av| 亚洲女子a中天字幕| 欧美videos中文字幕| av影院午夜一区| 另类成人小视频在线| 一个色在线综合| 亚洲国产精品久久久男人的天堂| 91精品国产黑色紧身裤美女| 波多野结衣欧美| 青青草国产精品97视觉盛宴| 中文字幕一区二区三中文字幕| 91精品国产麻豆| 日本道免费精品一区二区三区| 蜜臀av性久久久久蜜臀av麻豆| 亚洲美女偷拍久久| 久久久久久**毛片大全| 欧美日韩精品一区二区三区四区 | 色婷婷综合视频在线观看| 美国欧美日韩国产在线播放| 亚洲天堂精品视频| 久久久综合精品| 欧美老肥妇做.爰bbww| 99久久精品免费看| 国产一区 二区| 日本欧美在线看| 亚洲影院久久精品| 国产精品乱子久久久久| 国产色婷婷亚洲99精品小说| 欧美白人最猛性xxxxx69交| 在线观看国产一区二区| a美女胸又www黄视频久久| 国产精品一二三在| 久久国产福利国产秒拍| 日韩1区2区日韩1区2区| 一区二区三区四区五区视频在线观看 | 悠悠色在线精品| 欧美高清在线一区| 国产日产精品一区| 精品国产免费人成电影在线观看四季| 欧美日韩高清不卡| 欧美日韩一区高清| 欧美色男人天堂| 欧美三级视频在线播放| 在线日韩av片| 在线免费av一区| 色爱区综合激月婷婷| 日本电影亚洲天堂一区| 在线观看www91| 欧美日韩夫妻久久| 91精品午夜视频| 欧美一区二区免费观在线| 欧美一区二区视频观看视频| 91精品中文字幕一区二区三区| 欧美丰满美乳xxx高潮www| 欧美另类高清zo欧美| 欧美精品日日鲁夜夜添| 91精品国产综合久久婷婷香蕉| 欧美一区二区精品在线| 欧美成人激情免费网| 欧美精品一区二区三区很污很色的| 精品区一区二区| 国产婷婷一区二区| 亚洲欧美另类图片小说| 亚洲自拍偷拍图区| 亚洲精品大片www| 亚洲精品一二三四区| 亚洲成人动漫av| 久久精品免费看| 国产大陆精品国产| 99久久婷婷国产精品综合| 在线精品视频小说1| 欧美tickling挠脚心丨vk| 久久综合一区二区| 亚洲视频在线一区| 免费国产亚洲视频| 成人午夜在线视频| 欧美在线高清视频| 日韩欧美久久久| 中文字幕第一区综合| 亚洲国产精品久久久男人的天堂 | 国产在线视频不卡二| 北条麻妃一区二区三区| 欧美日韩午夜在线| 国产欧美日韩三级| 亚洲午夜激情网站| 国产一区二区三区在线观看免费| 99精品国产99久久久久久白柏| 精品污污网站免费看| 久久久久久亚洲综合影院红桃| 亚洲色图.com| 黑人巨大精品欧美黑白配亚洲| av一本久道久久综合久久鬼色| 欧美精品视频www在线观看| 欧美国产禁国产网站cc| 午夜av一区二区三区| 成人爱爱电影网址| 日韩欧美在线123| 日韩美女视频一区二区 | 色哟哟精品一区| 亚洲精品在线三区| 午夜精品久久久久| 成人免费黄色在线| 26uuu亚洲综合色欧美| 一二三区精品福利视频| 大白屁股一区二区视频| 制服丝袜亚洲播放| 亚洲另类在线视频| 国产成人精品亚洲777人妖| 91精品国产高清一区二区三区蜜臀 | 亚洲午夜一区二区三区| 国产91高潮流白浆在线麻豆| 日韩欧美成人一区二区| 亚洲综合999| jlzzjlzz亚洲女人18| 久久久综合视频| 精品一区二区三区在线视频| 欧美日韩免费视频| 亚洲免费在线视频一区 二区| 国产一区在线精品| 欧美本精品男人aⅴ天堂| 无码av中文一区二区三区桃花岛| 99精品1区2区| 中文字幕中文在线不卡住| 国产毛片一区二区| 精品久久久久久亚洲综合网| 蜜桃一区二区三区在线观看| 欧美午夜精品久久久久久孕妇| 中文字幕综合网| 91影院在线免费观看| 亚洲欧洲一区二区三区| 成人白浆超碰人人人人| 亚洲欧洲色图综合| 成人app软件下载大全免费| 欧美国产日韩a欧美在线观看 | 欧美性感一类影片在线播放| 亚洲日本电影在线| 91麻豆swag| 亚洲一区视频在线观看视频| 欧美色精品天天在线观看视频| 一区二区三区视频在线看| 在线免费观看不卡av| 亚洲成人av中文| 欧美一区二区三区在线电影| 蜜臀av一区二区| 337p粉嫩大胆色噜噜噜噜亚洲| 国产一区二区三区美女| 欧美国产精品一区二区三区| 99vv1com这只有精品| 亚洲精品成人a在线观看| 欧美曰成人黄网| 丝袜美腿成人在线| 日韩精品专区在线影院观看| 麻豆精品视频在线观看免费| 26uuu欧美| 成人一二三区视频| 亚洲午夜激情av| 5858s免费视频成人| 国产伦精品一区二区三区视频青涩| 欧美高清在线视频| 欧美亚洲免费在线一区| 日本vs亚洲vs韩国一区三区| 久久久精品日韩欧美| av不卡在线观看| 日韩av一级电影| 国产三级精品在线|