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

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

?? pis.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       */
/*                                                                       */
/*      pis.c                                          Nucleus PLUS 1.14 */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      PI - Pipe Management                                             */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains the supplemental routines for the pipe        */
/*      management component.                                            */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      PIS_Reset_Pipe                      Reset a pipe                 */
/*      PIS_Send_To_Front_Of_Pipe           Send message to pipe's front */
/*      PIS_Broadcast_To_Pipe               Broadcast a message to pipe  */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      cs_extr.h                           Common Service functions     */
/*      tc_extr.h                           Thread Control functions     */
/*      pi_extr.h                           Pipe functions               */
/*      hi_extr.h                           History functions            */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1994      Created initial version 1.1 from                 */
/*                      routines originally in core                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      04-17-1996      updated to version 1.2                           */
/*      02-04-1998      Corrected SPR434 resulting in                    */
/*                      version 1.2a.                                    */
/*      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        "pi_extr.h"                 /* Pipe functions            */
#include        "hi_extr.h"                 /* History functions         */
#include        "profiler.h"                /* ProView interface         */


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

extern CS_NODE         *PID_Created_Pipes_List;
extern UNSIGNED         PID_Total_Pipes;
extern TC_PROTECT       PID_List_Protect;


/* Define internal component function prototypes.  */

VOID    PIC_Cleanup(VOID *information);


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PIS_Reset_Pipe                                                   */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function resets the specified pipe back to the original     */
/*      state.  Any messages in the pipe are discarded.  Also, any       */
/*      tasks currently suspended on the pipe are resumed with the       */
/*      reset status.                                                    */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      PISE_Reset_Pipe                     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 against system access*/
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pipe_ptr                            Pipe control block pointer   */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                                                       */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         NAME            DATE                    REMARKS               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Changed function interfaces to                   */
/*                      match those in prototype,                        */
/*                      added register options, changed                  */
/*                      protection logic to reduce                       */
/*                      overhead, fixed read and write                   */
/*                      pointers to both point at the                    */
/*                      start, resulting in version 1.1                  */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      02-04-1998      Corrected SPR434.                                */
/*                                                                       */
/*************************************************************************/
STATUS  PIS_Reset_Pipe(NU_PIPE *pipe_ptr)
{

R1 PI_PCB      *pipe;                       /* Pipe control block ptr    */
PI_SUSPEND     *suspend_ptr;                /* Suspend block pointer     */
PI_SUSPEND     *next_ptr;                   /* Next suspend block pointer*/
STATUS          preempt;                    /* Status for resume call    */
NU_SUPERV_USER_VARIABLES

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

    /* Move input pipe pointer into internal pointer.  */
    pipe =  (PI_PCB *) pipe_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_PIPE_ID, (UNSIGNED) pipe,
                                        (UNSIGNED) 0, (UNSIGNED) 0);

#endif

    /* Protect against access to the pipe.  */
    TCT_System_Protect();

    /* Pickup the suspended task suspension list.  */
    suspend_ptr =  pipe -> pi_suspension_list;

    /* Walk the chain task(s) currently suspended on the pipe.  */
    preempt =  0;
    while (suspend_ptr)
    {

        /* Resume the suspended task.  Insure that the status returned is
           NU_PIPE_RESET.  */
        suspend_ptr -> pi_return_status =  NU_PIPE_RESET;

        /* Point to the next suspend structure in the link.  */
        next_ptr =  (PI_SUSPEND *) (suspend_ptr -> pi_suspend_link.cs_next);

        /* Resume the specified task.  */
        preempt =  preempt |
            TCC_Resume_Task((NU_TASK *) suspend_ptr -> pi_suspended_task,
                                                NU_PIPE_SUSPEND);

        /* Determine if the next is the same as the head pointer.  */
        if (next_ptr == pipe -> pi_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 block.  */
            suspend_ptr =  next_ptr;
    }

    /* Pickup the urgent message suspension list.  */
    suspend_ptr =  pipe -> pi_urgent_list;

    /* Walk the chain task(s) currently suspended on the pipe.  */
    while (suspend_ptr)
    {

        /* Resume the suspended task.  Insure that the status returned is
           NU_PIPE_RESET.  */
        suspend_ptr -> pi_return_status =  NU_PIPE_RESET;

        /* Point to the next suspend structure in the link.  */
        next_ptr =  (PI_SUSPEND *) (suspend_ptr -> pi_suspend_link.cs_next);

        /* Resume the specified task.  */
        preempt =  preempt |
            TCC_Resume_Task((NU_TASK *) suspend_ptr -> pi_suspended_task,
                                                NU_PIPE_SUSPEND);

        /* Determine if the next is the same as the head pointer.  */
        if (next_ptr == pipe -> pi_urgent_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 active block.  */
            suspend_ptr =  next_ptr;
    }

    /* Initialize various elements of the pipe.  */
    pipe -> pi_available =             pipe -> pi_end - pipe -> pi_start;
    pipe -> pi_messages =              0;
    pipe -> pi_read =                  pipe -> pi_start;
    pipe -> pi_write =                 pipe -> pi_start;
    pipe -> pi_tasks_waiting =         0;
    pipe -> pi_suspension_list =       NU_NULL;
    pipe -> pi_urgent_list =           NU_NULL;

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpPipe(RT_PROF_RESET_PIPE,pipe,RT_PROF_OK);
#endif /* INCLUDE_PROVIEW */

    /* Determine if preemption needs to occur.  */
    if (preempt)

        /* Transfer control to system to facilitate preemption.  */
        TCT_Control_To_System();

    /* Release protection against access to the pipe.  */
    TCT_Unprotect();

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

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


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PIS_Send_To_Front_Of_Pipe                                        */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function sends a message to the front of the specified      */
/*      message pipe.  The message length is determined by the caller.   */
/*      If there are any tasks suspended on the pipe for a message, the  */
/*      message is copied into the message area of the first waiting     */
/*      task and that task is resumed.  If there is enough room in the   */
/*      pipe, the message is copied in front of all other messages.      */
/*      If there is not enough room in the pipe, suspension of the       */
/*      caller is possible.                                              */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色噜噜久久综合| 麻豆专区一区二区三区四区五区| 欧美三级在线播放| 久久99精品国产麻豆婷婷| 中文字幕的久久| 3751色影院一区二区三区| 成人自拍视频在线| 九一九一国产精品| 亚洲一区二区三区四区的| 国产午夜精品久久久久久免费视 | 久草在线在线精品观看| 亚洲欧美日韩中文播放| 久久久久久亚洲综合影院红桃| 欧美剧在线免费观看网站 | 粉嫩绯色av一区二区在线观看| 日本少妇一区二区| 亚洲一区在线观看网站| 中文字幕制服丝袜成人av| 精品精品国产高清a毛片牛牛| 欧美视频完全免费看| 99久久99久久精品免费观看| 国产一区二区精品久久99| 天堂av在线一区| 一区二区三区在线免费| 国产精品久久久99| 欧美激情一区二区三区四区| 精品国产人成亚洲区| 欧美一区二区三区四区久久| 欧美网站一区二区| 91久久免费观看| 91原创在线视频| 一本大道久久精品懂色aⅴ| av中文字幕在线不卡| 国产大片一区二区| 国产伦精品一区二区三区免费| 久久国产日韩欧美精品| 青青草精品视频| 日韩av成人高清| 天堂资源在线中文精品| 亚洲午夜久久久久久久久电影院| 亚洲天堂精品视频| 亚洲色图丝袜美腿| 亚洲精选免费视频| 亚洲精品视频在线| 一区二区三区四区精品在线视频| 亚洲柠檬福利资源导航| 亚洲黄色录像片| 亚洲福利视频一区| 天堂蜜桃91精品| 久久国产精品色婷婷| 久久国产精品色| 国产成人免费av在线| 成人国产精品免费观看| 91网站最新地址| 欧美在线看片a免费观看| 欧美日韩在线播放三区| 欧美久久一区二区| 日韩精品专区在线影院重磅| 日韩免费性生活视频播放| 久久久久久一二三区| 国产精品福利影院| 一区二区三区在线免费视频| 午夜视频在线观看一区二区三区| 日本视频在线一区| 国产成人啪免费观看软件| 99这里只有久久精品视频| 欧美日韩在线一区二区| 日韩欧美成人午夜| 国产精品人妖ts系列视频| 亚洲欧美另类综合偷拍| 视频精品一区二区| 国产一区二区h| 在线欧美小视频| 日韩欧美成人激情| 亚洲欧洲精品一区二区精品久久久 | 亚洲欧美一区二区三区久本道91| 亚洲午夜视频在线| 九九国产精品视频| www.亚洲人| 欧美精品1区2区3区| 国产清纯白嫩初高生在线观看91| 一区二区三区四区亚洲| 激情综合色播五月| 91丨九色丨蝌蚪丨老版| 欧美一区二区三区性视频| 国产精品每日更新| 日韩avvvv在线播放| 成人不卡免费av| 91精品国产综合久久精品性色 | 亚洲国产精品av| 性欧美大战久久久久久久久| 国产精品一区二区黑丝| 欧美亚洲高清一区| 国产欧美一区二区精品秋霞影院 | 国产麻豆精品在线| 欧美日韩日日夜夜| 久久精品亚洲精品国产欧美| 亚洲午夜久久久久久久久久久| 国产经典欧美精品| 欧美精品三级日韩久久| 综合色中文字幕| 极品美女销魂一区二区三区| 在线日韩av片| 国产精品人成在线观看免费| 日本欧洲一区二区| 91免费视频网| 欧美韩国日本一区| 久久精品国产网站| 欧美亚洲一区二区在线| 中文字幕av一区二区三区高| 久久精品国产亚洲a| 精品视频999| 有坂深雪av一区二区精品| 国产精品77777| 日韩午夜在线影院| 日韩中文字幕91| 在线欧美小视频| 亚洲日本一区二区三区| 粉嫩高潮美女一区二区三区| 精品国产乱码久久久久久免费| 五月婷婷激情综合| 在线精品国精品国产尤物884a| 欧美韩国日本一区| 国产精品66部| 久久人人超碰精品| 国产一区二区免费在线| 精品99一区二区三区| 琪琪一区二区三区| 777精品伊人久久久久大香线蕉| 亚洲精品你懂的| 色综合天天综合狠狠| 国产精品成人免费精品自在线观看| 国产成人亚洲综合a∨婷婷| 久久久国产精品麻豆| 韩国精品久久久| 久久伊人中文字幕| 国产一区二区三区黄视频| 久久一二三国产| 国产资源精品在线观看| 久久综合五月天婷婷伊人| 国产麻豆精品久久一二三| 久久网站热最新地址| 国产精品888| 国产精品久久久久久一区二区三区 | 日韩精品一区二区三区在线观看 | 91亚洲大成网污www| 国产精品成人一区二区艾草| 91年精品国产| 一区二区三区在线免费| 欧美另类高清zo欧美| 日本伊人色综合网| 欧美哺乳videos| 国产精品888| 国产精品久久夜| 色婷婷av一区二区三区大白胸 | 欧美tickling网站挠脚心| 精品一区二区三区在线观看| 国产视频一区不卡| 成人激情图片网| 亚洲欧美日韩一区二区三区在线观看| 99久久国产综合精品色伊| 亚洲综合精品久久| 67194成人在线观看| 国产综合久久久久影院| 国产精品免费久久久久| 色婷婷亚洲综合| 五月天视频一区| 久久亚洲精品小早川怜子| www.欧美精品一二区| 亚洲国产日韩综合久久精品| 欧美一区中文字幕| 国产不卡在线一区| 亚洲国产视频一区| 精品国免费一区二区三区| 99久久精品99国产精品| 婷婷夜色潮精品综合在线| 精品国产乱码久久久久久浪潮| 成人黄色电影在线| 首页国产欧美日韩丝袜| 国产午夜亚洲精品羞羞网站| 91玉足脚交白嫩脚丫在线播放| 日韩精品一二三区| 国产欧美日韩亚州综合| 欧美日韩中文精品| 国产精品一二二区| 亚洲午夜日本在线观看| 久久九九久久九九| 欧美揉bbbbb揉bbbbb| 国产福利一区在线| 亚洲在线中文字幕| 久久精品男人的天堂| 精品视频在线视频| 国产**成人网毛片九色| 视频一区二区国产| 亚洲欧美日韩国产另类专区 | 一区二区三区中文字幕精品精品 | 午夜精品福利一区二区蜜股av | 99久久国产免费看| 国内精品国产三级国产a久久| 亚洲综合免费观看高清完整版|