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

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

?? tcs.c

?? nucleas source code
?? C
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
/* CALLS                                                                 */
/*                                                                       */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      TCC_Signal_Shell                    Signal execution shell       */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Protect                         Protect against other access */
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      signal_handler                      Signal execution shell       */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                                                       */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      05-15-1993      Corrected problem with a comment                 */
/*      05-15-1993      Verified comment repair                          */
/*      03-01-1994      Added register optimizations,                    */
/*                      modified protection logic,                       */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  TCS_Register_Signal_Handler(VOID (*signal_handler)(UNSIGNED))
{

R1 TC_TCB      *task;                       /* Task pointer              */
NU_SUPERV_USER_VARIABLES

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

#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_REGISTER_SIGNAL_HANDLER_ID,
                        (UNSIGNED) signal_handler, (UNSIGNED) 0, (UNSIGNED) 0);

#endif

    /* Pickup the task pointer.  */
    task =  (TC_TCB *) TCD_Current_Thread;

    /* Protect against simultaneous access.  */
    TCT_Protect(&TCD_System_Protect);

    /* Put the new signal handler in.  */
    task -> tc_signal_handler =  signal_handler;

    /* Now, determine if the signal handler needs to be invoked.  */
    if ((task -> tc_enabled_signals & task -> tc_signals) &&
        (!task -> tc_signal_active) &&
        (task -> tc_signal_handler))
    {

        /* Signal processing is required.  */

        /* Indicate that signal processing is in progress.  */
        task -> tc_signal_active =  NU_TRUE;

        /* Clear the saved stack pointer to indicate that this is an
           in line signal handler call.  */
        task -> tc_saved_stack_ptr =  NU_NULL;

        /* Release protection from multiple access.  */
        TCT_Unprotect();

        /* Call the signal handling shell. */
        TCC_Signal_Shell();
    }
    else

        /* Release protection.  */
        TCT_Unprotect();

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

    /* Return success.  */
    return(NU_SUCCESS);
}


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      TCS_Send_Signals                                                 */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function sends the specified task the specified signals.    */
/*      If enabled, the specified task is setup in order to process the  */
/*      signals.                                                         */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      TCSE_Send_Signals                   Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      TCC_Resume_Task                     Resume task that is suspended*/
/*      TCC_Signal_Shell                    Signal execution shell       */
/*      TCT_Build_Signal_Frame              Build a signal frame         */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Control_To_System               Control to system            */
/*      TCT_Protect                         Protect against other access */
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      task_ptr                            Task pointer                 */
/*      signals                             Signals to send to the task  */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                                                       */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Modified function interface,                     */
/*                      added register optimizations,                    */
/*                      modified protection logic,                       */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      04-04-1996      On line 995, changed tc_signals                  */
/*                      to tc_enabled_signals,                           */
/*                      resulting in version 1.1+                        */
/*                      (spr 107)                                        */
/*                                                                       */
/*************************************************************************/
STATUS  TCS_Send_Signals(NU_TASK *task_ptr, UNSIGNED signals)
{

R1 TC_TCB      *task;                       /* Task control block ptr    */
NU_SUPERV_USER_VARIABLES

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

    /* Move input task control block pointer into internal pointer.  */
    task =  (TC_TCB *) task_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_SEND_SIGNALS_ID, (UNSIGNED) signals,
                                        (UNSIGNED) 0, (UNSIGNED) 0);

#endif

    /* Protect against simultaneous access.  */
    TCT_Protect(&TCD_System_Protect);

    /* Or the new signals into the current signals.  */
    task -> tc_signals =  task -> tc_signals | signals;

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpTask(task,RT_PROF_SEND_SIGNALS);
#endif
    /* Now, determine if the signal handler needs to be invoked.  */
    if ((task -> tc_signals & task -> tc_enabled_signals) &&
        (!task -> tc_signal_active) &&
        (task -> tc_status != NU_TERMINATED) &&
        (task -> tc_status != NU_FINISHED) &&
        (task -> tc_signal_handler))
    {

        /* Indicate that signal processing is in progress.  */
        task -> tc_signal_active =  NU_TRUE;

        /* Signal processing is required.  Determine if the task is sending
           signals to itself or if the calling thread is not the current
           task.  */
        if (task == (TC_TCB *) TCD_Current_Thread)
        {

            /* Task sending signals to itself.  */

            /* Clear the saved stack pointer to indicate that this is an
               in line signal handler call.  */
            task -> tc_saved_stack_ptr =  NU_NULL;

            /* Release protection from multiple access.  */
            TCT_Unprotect();

            /* Call the signal handling shell. */
            TCC_Signal_Shell();
        }
        else
        {

            /* Target task must be prepared to receive the signals.  */

            /* First, insure that the target task is not in a protected
               area.  */
            do
            {

                /* Check for protection.  Remember that protection is still
                   in effect.  */
                if (task -> tc_current_protect)
                {

                    /* Yes, target task is in a protected mode.  Release
                       the protection on the scheduling list and transfer
                       control briefly to the target task.  */
                    TCT_Unprotect();

                    /* Switch to the protected task and wait until the
                       task is not protected.  */
                    TCT_Protect_Switch(task);

                    /* Restore protection on the scheduling structures.  */
                    TCT_Protect(&TCD_System_Protect);
                }
            } while (task -> tc_current_protect);

            /* Copy the current status and stack pointer to the signal save
               areas.  */
            task -> tc_saved_status =           task -> tc_status;
            task -> tc_saved_stack_ptr =        task -> tc_stack_pointer;

            /* Build a stack frame for the signal handling shell function. */
            TCT_Build_Signal_Frame(task);

            /* Determine if the target task is currently suspended.  If it is
               suspended for any other reason than a pure suspend, resume
               it.  */
            if ((task -> tc_status != NU_READY) &&
                (task -> tc_status != NU_PURE_SUSPEND))
            {

                /* Resume the target task and check for preemption.  */
                if (TCC_Resume_Task(task_ptr, task -> tc_status))

                    /* Preemption needs to take place.  */
                    TCT_Control_To_System();
            }
        }
    }

    /* Release protection, no signals are currently enabled.  */
    TCT_Unprotect();

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

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




?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区高清| 天堂影院一区二区| 欧美在线短视频| 久久精品国产色蜜蜜麻豆| 国产精品无码永久免费888| 欧美日韩卡一卡二| 国产成人精品免费看| 亚洲444eee在线观看| 国产精品视频你懂的| 91精品国产入口在线| 五月天激情小说综合| 亚洲日本免费电影| 亚洲国产高清aⅴ视频| 日韩情涩欧美日韩视频| 性感美女久久精品| 中文字幕五月欧美| 精品国产1区二区| 91精品国产欧美一区二区| 日本黄色一区二区| 99re成人精品视频| 国产成人小视频| 欧美麻豆精品久久久久久| 日韩精品高清不卡| 亚洲国产成人av| 亚洲免费观看高清完整版在线观看熊 | 26uuu另类欧美亚洲曰本| 色噜噜狠狠色综合中国| 成人看片黄a免费看在线| 韩国精品久久久| 蜜桃久久精品一区二区| 五月婷婷激情综合| 亚洲福利视频三区| 91精品国产乱码| 欧美日韩国产综合视频在线观看| 91亚洲精品一区二区乱码| 粉嫩av一区二区三区| 国产成人精品一区二区三区四区| 久久99国产精品久久| 麻豆成人综合网| 久久天堂av综合合色蜜桃网| 午夜精品成人在线视频| 精品剧情在线观看| 精品国产网站在线观看| 日韩精品一区二区三区蜜臀| 日韩亚洲欧美中文三级| 日韩一区国产二区欧美三区| 欧美一区二区网站| 日韩欧美中文一区二区| 精品国产91亚洲一区二区三区婷婷| 日韩欧美一级精品久久| 久久这里只有精品视频网| 久久久久久97三级| 国产精品乱码妇女bbbb| 亚洲人成网站精品片在线观看| 亚洲免费av高清| 偷拍一区二区三区| 美女视频黄 久久| 中文字幕av一区 二区| 亚洲欧洲在线观看av| 一区二区在线观看视频| 亚瑟在线精品视频| 美国十次了思思久久精品导航| 狠狠久久亚洲欧美| 成人激情动漫在线观看| 中文字幕av在线一区二区三区| 制服丝袜中文字幕亚洲| 日韩久久免费av| 国产日韩欧美亚洲| 一二三区精品视频| 麻豆精品久久久| 成人激情动漫在线观看| 欧美日韩视频不卡| 精品国产免费一区二区三区四区 | 亚洲精品日日夜夜| 亚洲电影一级黄| 国内久久婷婷综合| 97se亚洲国产综合自在线不卡| 欧美三级日韩在线| 成人午夜精品在线| 欧美在线一二三四区| 精品国产乱码久久久久久影片| 国产精品久久久久久久久免费相片| 亚洲黄一区二区三区| 精品一区二区在线播放| 91麻豆高清视频| 久久国产婷婷国产香蕉| 亚洲综合在线视频| 麻豆精品久久精品色综合| 99精品欧美一区| 日韩精品一区二区三区swag| 国产精品久久久久久一区二区三区| 日韩精品免费视频人成| 99久久久国产精品免费蜜臀| 日韩欧美你懂的| 一区二区三区欧美| 韩国v欧美v亚洲v日本v| 欧美色区777第一页| 日本一区二区三区四区在线视频| 婷婷久久综合九色综合伊人色| 懂色av中文一区二区三区| 欧美精品色一区二区三区| 国产精品久久久久四虎| 激情小说亚洲一区| 麻豆精品一区二区| 欧美日韩一区二区不卡| 中文字幕一区二区三区蜜月| 另类调教123区| 欧美三级电影在线观看| 自拍偷在线精品自拍偷无码专区 | 成人午夜激情在线| a亚洲天堂av| 欧美精品一区二| 日韩高清不卡一区二区三区| 日本精品一区二区三区高清| 久久噜噜亚洲综合| 蜜臀av一区二区在线观看| 欧美视频你懂的| 亚洲精品自拍动漫在线| 成人一区二区三区| 久久精品这里都是精品| 精品亚洲免费视频| 日韩欧美卡一卡二| 美女视频免费一区| 欧美zozo另类异族| 蜜臀久久久久久久| 欧美一区二区三区不卡| 亚洲v中文字幕| 美女www一区二区| 在线电影院国产精品| 亚洲国产成人av网| 欧美日韩高清在线播放| 亚洲6080在线| 欧美一区二区三级| 免费在线观看精品| 欧美一区二区性放荡片| 蜜臀va亚洲va欧美va天堂| 亚洲国产一区二区视频| 人妖欧美一区二区| 日韩精品中文字幕一区| 免费美女久久99| 精品日韩欧美一区二区| 国产麻豆精品在线| 国产欧美日韩在线| av电影天堂一区二区在线| 自拍偷拍国产精品| 在线视频国产一区| 三级不卡在线观看| 欧美va亚洲va香蕉在线| 国产伦精品一区二区三区免费迷| 精品成人免费观看| 96av麻豆蜜桃一区二区| 在线综合视频播放| 麻豆成人av在线| 亚洲国产精品精华液ab| youjizz久久| 亚洲国产精品久久久久婷婷884| 老司机午夜精品99久久| 欧美精品一区二区久久久| 成人免费高清视频| 一区二区三区四区av| 欧美疯狂性受xxxxx喷水图片| 久久国产乱子精品免费女| 久久久久久久久岛国免费| jiyouzz国产精品久久| 亚洲小说春色综合另类电影| 中文字幕 久热精品 视频在线 | 久久久国产精品午夜一区ai换脸| 成人永久免费视频| 亚洲免费成人av| 欧美成人a在线| 91年精品国产| 另类中文字幕网| ...xxx性欧美| 日韩一区二区免费在线观看| 成人午夜av在线| 婷婷亚洲久悠悠色悠在线播放| 337p粉嫩大胆色噜噜噜噜亚洲| 91丨porny丨在线| 理论片日本一区| 亚洲与欧洲av电影| 久久色中文字幕| 欧美色老头old∨ideo| 亚洲少妇中出一区| 欧美电影免费观看高清完整版在线观看| 国产精品一区二区三区99| 亚洲一级不卡视频| 久久精品日产第一区二区三区高清版| 日本精品裸体写真集在线观看| 国产一区999| 亚洲不卡在线观看| 日韩综合在线视频| 色天天综合色天天久久| 色偷偷久久人人79超碰人人澡| 一区二区三区四区蜜桃| 欧美精品一区二区三区一线天视频| 色系网站成人免费| 成人av免费网站| 精品一区二区日韩| 首页欧美精品中文字幕| 亚洲人亚洲人成电影网站色|