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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pis.c

?? nucleas source code
?? C
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
/*************************************************************************/
/*                                                                       */
/*               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                                                      */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
极品少妇xxxx精品少妇偷拍| 91精品国产高清一区二区三区| 一区二区三区美女| 在线亚洲免费视频| 国产专区综合网| 亚洲国产精品影院| 国产精品色一区二区三区| 欧美久久一区二区| 成人免费视频一区| 精品一区二区日韩| 亚洲成人av中文| 亚洲欧美日韩系列| 国产三级一区二区三区| 777亚洲妇女| 日本久久电影网| 成人动漫一区二区在线| 国产乱子轮精品视频| 日韩国产欧美在线播放| 亚洲综合精品自拍| 日韩一区欧美一区| 国产日韩欧美在线一区| 日韩欧美中文字幕一区| 欧美日韩国产高清一区二区三区| 91浏览器在线视频| eeuss鲁片一区二区三区| 国产精品一色哟哟哟| 久久国产日韩欧美精品| 日本欧美在线观看| 首页亚洲欧美制服丝腿| 一区二区三区免费在线观看| 亚洲卡通欧美制服中文| 中文字幕一区二| 中文字幕字幕中文在线中不卡视频| 国产亚洲一区二区在线观看| 久久久亚洲精华液精华液精华液| 日韩一级片在线观看| 日韩一卡二卡三卡国产欧美| 在线不卡欧美精品一区二区三区| 欧美日韩电影在线| 在线成人小视频| 欧美一级片免费看| 欧美一级理论性理论a| 欧美一区二区三区四区久久| 欧美一区二区三区免费在线看| 一区二区三区四区五区视频在线观看| 国产精品午夜在线| 中文字幕免费不卡在线| 国产精品久久久久永久免费观看 | 欧美在线观看视频在线| 色呦呦网站一区| 欧美亚洲国产bt| 欧美精品在线一区二区| 欧美成人欧美edvon| 国产性天天综合网| 一区在线观看免费| 亚洲国产精品视频| 亚洲第一激情av| 韩国女主播成人在线观看| 久久国产成人午夜av影院| 国产精品夜夜嗨| 成人免费观看男女羞羞视频| 91在线你懂得| 69堂亚洲精品首页| 久久久美女毛片| 中文字幕第一区二区| 亚洲永久免费av| 奇米一区二区三区| 国产高清在线观看免费不卡| 成人美女在线观看| 欧美三级中文字| 久久综合狠狠综合久久激情| 国产精品久久久久久久久快鸭 | 亚洲一卡二卡三卡四卡五卡| 丝袜美腿高跟呻吟高潮一区| 欧美日韩精品欧美日韩精品一 | 美女国产一区二区| 国产精品亚洲午夜一区二区三区| 成人av第一页| 在线播放日韩导航| 亚洲国产精品传媒在线观看| 亚洲成人av福利| 成人午夜伦理影院| 欧美午夜精品电影| 久久五月婷婷丁香社区| 一区二区国产视频| 韩国欧美国产1区| 欧美在线999| 337p日本欧洲亚洲大胆色噜噜| 中文字幕一区视频| 久久国产人妖系列| 欧美在线观看18| 久久久蜜桃精品| 天堂成人国产精品一区| 成人午夜精品一区二区三区| 欧美精品777| 亚洲欧美国产高清| 国产激情一区二区三区桃花岛亚洲| 欧美偷拍一区二区| 国产欧美精品一区二区色综合朱莉| 亚洲成年人网站在线观看| 成人av影视在线观看| 日韩欧美一级在线播放| 91天堂素人约啪| 久久久久高清精品| 日韩精品亚洲专区| 在线一区二区三区四区| 国产精品美女一区二区在线观看| 日韩1区2区3区| 欧美日韩亚洲综合在线 | 亚洲成a人片综合在线| 国产成人精品亚洲午夜麻豆| 日韩一级视频免费观看在线| 亚洲午夜在线视频| 91麻豆国产香蕉久久精品| 国产欧美在线观看一区| 韩国av一区二区三区四区| 欧美日韩视频在线第一区| 亚洲天堂精品在线观看| 国产精品66部| 久久精品在线免费观看| 麻豆91精品91久久久的内涵| 欧美精品丝袜中出| 亚洲国产乱码最新视频| 日本高清视频一区二区| 亚洲视频一区二区免费在线观看 | 成人久久久精品乱码一区二区三区| 欧美大片免费久久精品三p| 日韩经典中文字幕一区| 欧美性猛交一区二区三区精品| 日韩理论电影院| 91片黄在线观看| 最好看的中文字幕久久| 91亚洲精华国产精华精华液| 中文字幕精品在线不卡| 成人精品在线视频观看| 国产精品第四页| 97国产精品videossex| 亚洲欧美综合色| 91女人视频在线观看| 亚洲精品国产精品乱码不99| 91丝袜呻吟高潮美腿白嫩在线观看| 国产精品久久毛片| 色综合久久中文综合久久97| 一区二区三区在线免费观看| 91福利精品第一导航| 亚洲综合999| 欧美一区二区网站| 激情av综合网| 国产精品成人免费精品自在线观看| 成人免费视频免费观看| 亚洲视频在线观看一区| 欧美午夜片在线观看| 日韩福利视频导航| 337p日本欧洲亚洲大胆精品| 丰满放荡岳乱妇91ww| 亚洲美女屁股眼交3| 欧美偷拍一区二区| 久久狠狠亚洲综合| 国产精品久久久久久久久图文区 | 精品久久人人做人人爽| 国产精品综合视频| 亚洲日本在线天堂| 欧美日韩精品三区| 国产成人一区二区精品非洲| 成人免费视频在线观看| 欧美天天综合网| 国产一区欧美日韩| 国产精品国产三级国产专播品爱网 | 五月天婷婷综合| 精品日产卡一卡二卡麻豆| 成人污视频在线观看| 亚洲一区二区三区自拍| 日韩一区二区精品| 成人av午夜电影| 日韩国产欧美三级| 国产日韩精品一区| 欧美日韩精品二区第二页| 国产成人亚洲综合a∨婷婷图片| 亚洲女子a中天字幕| 91精品国产91久久久久久一区二区 | 一区二区久久久| 精品捆绑美女sm三区| 色94色欧美sute亚洲线路二| 另类调教123区| 亚洲丝袜自拍清纯另类| 日韩精品专区在线影院观看| 亚洲国产精品成人综合| 欧美丰满一区二区免费视频| 成人一区二区在线观看| 午夜精品视频一区| 中文字幕不卡的av| 日韩亚洲欧美一区| 在线观看日韩一区| 国产91精品免费| 久久精品国产99久久6| 亚洲国产精品一区二区www在线| 国产视频一区在线播放| 日韩午夜在线播放| 欧美在线不卡视频| 99re视频精品|