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

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

?? quc.c

?? nucleas source code
?? C
?? 第 1 頁 / 共 5 頁
字號:
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function deletes a queue and removes it from the list of    */
/*      created queues.  All tasks suspended on the queue are            */
/*      resumed.  Note that this function does not free the memory       */
/*      associated with the queue.                                       */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      QUCE_Delete_Queue                   Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Remove_From_List                Remove node from list        */
/*      [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_Protect                         Protect created list         */
/*      TCT_Set_Current_Protect             Setup current protect pointer*/
/*      TCT_System_Protect                  Protect against system access*/
/*      TCT_System_Unprotect                Release system protection    */
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      queue_ptr                           Queue control block pointer  */
/*                                                                       */
/* 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 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                             */
/*                                                                       */
/*************************************************************************/
STATUS  QUC_Delete_Queue(NU_QUEUE *queue_ptr)
{

R1 QU_QCB      *queue;                      /* Queue control block ptr   */
QU_SUSPEND     *suspend_ptr;                /* Suspend block pointer     */
QU_SUSPEND     *next_ptr;                   /* Next suspend block pointer*/
STATUS          preempt;                    /* Status for resume call    */
NU_SUPERV_USER_VARIABLES

    /* Move input queue pointer into internal pointer.  */
    queue =  (QU_QCB *) queue_ptr;

    /* 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_DELETE_QUEUE_ID, (UNSIGNED) queue,
                                        (UNSIGNED) 0, (UNSIGNED) 0);

#endif

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

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpQueue(RT_PROF_DELETE_QUEUE,queue,RT_PROF_OK);
#endif

    /* Clear the queue ID.  */
    queue -> qu_id =  0;

    /* Release protection.  */
    TCT_Unprotect();

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

    /* Remove the queue from the list of created queues.  */
    CSC_Remove_From_List(&QUD_Created_Queues_List, &(queue -> qu_created));

    /* Decrement the total number of created queues.  */
    QUD_Total_Queues--;

    /* Pickup the suspended task pointer list.  */
    suspend_ptr =  queue -> qu_suspension_list;

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

        /* Protect against system access.  */
        TCT_System_Protect();

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

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

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

        /* Determine if the next is the same as the head pointer.  */
        if (next_ptr == queue -> qu_suspension_list)

            /* Clear the suspension pointer to signal the end of the list
               traversal.  */
            suspend_ptr =  NU_NULL;
        else

            /* Position suspend pointer to the next pointer.  */
            suspend_ptr =  next_ptr;

        /* Modify current protection.  */
        TCT_Set_Current_Protect(&QUD_List_Protect);

        /* Clear the system protection.  */
        TCT_System_Unprotect();
    }

    /* Pickup the urgent message suspension list.  */
    suspend_ptr =  queue -> qu_urgent_list;

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

        /* Protect against system access.  */
        TCT_System_Protect();

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

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

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

        /* Determine if the next is the same as the head pointer.  */
        if (next_ptr == queue -> qu_urgent_list)

            /* Clear the suspension pointer to signal the end of the list
               traversal.  */
            suspend_ptr =  NU_NULL;
        else

            /* Position to the next suspend block in the list.  */
            suspend_ptr =  next_ptr;

        /* Modify current protection.  */
        TCT_Set_Current_Protect(&QUD_List_Protect);

        /* Clear the system protection.  */
        TCT_System_Unprotect();
    }

    /* 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 list of created queues.  */
    TCT_Unprotect();

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

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


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      QUC_Send_To_Queue                                                */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function sends a message to the specified queue.  The       */
/*      message length is determined by the caller.  If there are one    */
/*      or more tasks suspended on the queue for a message, the message  */
/*      is copied into the message area of the first waiting task.  If   */
/*      the task's request is satisfied, it is resumed.  Otherwise, if   */
/*      the queue cannot hold the message, suspension of the calling     */
/*      task is an option of the caller.                                 */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      QUCE_Send_To_Queue                  Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Place_On_List                   Place on suspend list        */
/*      CSC_Priority_Place_On_List          Place on priority list       */
/*      CSC_Remove_From_List                Remove from suspend list     */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      TCC_Resume_Task                     Resume a suspended task      */
/*      TCC_Suspend_Task                    Suspend calling task         */
/*      TCC_Task_Priority                   Pickup task's priority       */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Control_To_System               Transfer control to system   */
/*      TCT_Current_Thread                  Pickup current thread pointer*/
/*      TCT_System_Protect                  Protect queue                */
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      queue_ptr                           Queue control block pointer  */
/*      message                             Pointer to message to send   */
/*      size                                Size of message to send      */
/*      suspend                             Suspension option if full    */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                          If service is successful     */
/*      NU_QUEUE_FULL                       If queue is currently full   */
/*      NU_TIMEOUT                          If timeout on service expires*/
/*      NU_QUEUE_DELETED                    If queue was deleted during  */
/*                                            suspension                 */
/*      NU_QUEUE_RESET                      If queue was reset during    */
/*                                            suspension                 */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*        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, optimized copy loop,                   */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  QUC_Send_To_Queue(NU_QUEUE *queue_ptr, VOID *message, UNSIGNED size,
                                                        UNSIGNED suspend)
{

R1 QU_QCB      *queue;                      /* Queue control block ptr   */
QU_SUSPEND      suspend_block;              /* Allocate suspension block */
QU_SUSPEND     *suspend_ptr;                /* Pointer to suspend block  */
R3 UNSIGNED_PTR source;                     /* Pointer to source         */
R4 UNSIGNED_PTR destination;                /* Pointer to destination    */
UNSIGNED        copy_size;                  /* Partial copy size         */
R2 INT          i;                          /* Working counter           */
TC_TCB         *task;                       /* Task pointer              */
STATUS          preempt;                    /* Preempt flag              */
STATUS          status;                     /* Completion status         */
NU_SUPERV_USER_VARIABLES

    /* Switch to supervisor mode */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆成人av在线| 中文字幕一区三区| 日产精品久久久久久久性色| 欧美日韩视频在线观看一区二区三区| 国产精品久久久一区麻豆最新章节| 成人avav在线| 亚洲综合偷拍欧美一区色| 精品视频在线免费| 免费在线成人网| 国产欧美日韩三级| 色一情一伦一子一伦一区| 午夜精品久久久久久久久久| 日韩三级伦理片妻子的秘密按摩| 激情五月婷婷综合网| 中文字幕+乱码+中文字幕一区| 97se亚洲国产综合自在线| 亚洲自拍偷拍网站| 日韩欧美色综合| 99久久99久久综合| 奇米色777欧美一区二区| 国产欧美一区二区精品性| 色天天综合色天天久久| 青青青伊人色综合久久| 国产精品久久久久久久久果冻传媒| 日本二三区不卡| 韩国成人在线视频| 亚洲人成伊人成综合网小说| 日韩欧美中文字幕精品| av在线播放一区二区三区| 日韩成人精品在线观看| 中文字幕第一区综合| 欧美精品少妇一区二区三区| 国产成人久久精品77777最新版本| 亚洲精品菠萝久久久久久久| 日韩你懂的在线观看| 色猫猫国产区一区二在线视频| 蜜乳av一区二区| 亚洲精品视频自拍| 久久久久久一二三区| 欧美亚洲国产怡红院影院| 国产.精品.日韩.另类.中文.在线.播放| 一区二区三区在线观看国产| 欧美国产综合色视频| 日韩一区二区视频在线观看| 91日韩精品一区| 国产成人亚洲综合a∨婷婷| 婷婷综合久久一区二区三区| 日韩伦理电影网| 国产性天天综合网| 欧美一区二区在线视频| 欧美亚洲综合另类| 色网综合在线观看| 国产99久久久国产精品潘金| 美女在线视频一区| 日韩国产在线一| 一区二区三区中文字幕在线观看| 亚洲国产高清aⅴ视频| 日韩精品一区二区三区在线观看| 欧美在线视频不卡| 色综合中文字幕国产| 国模冰冰炮一区二区| 天堂成人免费av电影一区| 亚洲资源在线观看| 一区二区三区视频在线看| 中文字幕亚洲不卡| 国产精品久久久久久久久免费丝袜 | 久久99精品国产麻豆不卡| 亚洲图片一区二区| 一区二区三区不卡视频| 亚洲精品综合在线| 亚洲免费观看高清完整版在线观看| 中文子幕无线码一区tr| 国产欧美一区二区三区网站| 国产欧美在线观看一区| 国产亲近乱来精品视频| 中文字幕精品三区| 国产精品久久久久一区二区三区 | 精品伦理精品一区| 日韩一级高清毛片| 欧美变态tickling挠脚心| 日韩欧美成人激情| 久久青草欧美一区二区三区| 久久久精品免费观看| 久久精品欧美日韩精品| 国产精品免费视频观看| ...中文天堂在线一区| 曰韩精品一区二区| 亚洲国产精品久久久男人的天堂| 午夜精品爽啪视频| 九色|91porny| 波多野结衣精品在线| 91啪亚洲精品| 欧美精品久久99久久在免费线| 欧美一区二区三区日韩| 久久一夜天堂av一区二区三区| 欧美国产国产综合| 亚洲人一二三区| 日韩中文欧美在线| 国产精选一区二区三区| 99re这里只有精品视频首页| 在线一区二区三区四区五区| 91.麻豆视频| 国产欧美在线观看一区| 一区二区三区视频在线看| 日韩精品电影在线观看| 国产成人av影院| 欧美亚洲国产一卡| xvideos.蜜桃一区二区| 亚洲美女屁股眼交| 麻豆一区二区三| 福利一区二区在线| 欧美日韩精品三区| 国产午夜精品一区二区三区四区| 亚洲精品菠萝久久久久久久| 极品美女销魂一区二区三区| 97超碰欧美中文字幕| 日韩欧美国产精品一区| 国产精品第五页| 另类小说综合欧美亚洲| 91农村精品一区二区在线| 91精品国产一区二区三区香蕉| 国产清纯白嫩初高生在线观看91 | 亚洲人123区| 精彩视频一区二区| 欧美性色aⅴ视频一区日韩精品| 精品国内二区三区| 一区二区欧美国产| 国产不卡视频一区二区三区| 欧美精品第1页| 亚洲欧洲韩国日本视频| 久国产精品韩国三级视频| 色94色欧美sute亚洲线路二| 国产亚洲精品资源在线26u| 亚洲成人第一页| 97久久超碰国产精品电影| 久久久久久久久久久久久久久99| 亚洲资源中文字幕| 99re成人精品视频| 久久精品一级爱片| 美女国产一区二区| 欧美精选一区二区| 亚洲资源在线观看| 91蜜桃网址入口| 欧美国产日韩a欧美在线观看| 蜜桃视频在线一区| 6080yy午夜一二三区久久| 一区二区在线免费观看| 成人免费视频网站在线观看| 久久综合中文字幕| 免费成人你懂的| 欧美一区二区视频网站| 亚洲一区二区美女| 欧美亚洲国产怡红院影院| 亚洲人精品午夜| 99国产精品视频免费观看| 国产精品久久久久精k8| 国产大片一区二区| 久久久青草青青国产亚洲免观| 蜜桃精品视频在线观看| 欧美一区二区三区免费视频| 日韩精品高清不卡| 欧美一区二区女人| 奇米一区二区三区| 日韩精品一区二区三区老鸭窝 | 欧美一区二区视频免费观看| 日本vs亚洲vs韩国一区三区二区 | 亚洲妇女屁股眼交7| 成人午夜又粗又硬又大| 亚洲国产精品t66y| 懂色av噜噜一区二区三区av| 国产视频911| 99久久免费国产| 亚洲激情中文1区| 在线影院国内精品| 日韩电影在线一区二区三区| 91精品国产综合久久久久| 久久国产精品一区二区| 久久久久国产精品厨房| 国产999精品久久| 中文字幕一区免费在线观看| 91日韩一区二区三区| 亚洲一区二区免费视频| 91精品国模一区二区三区| 久久国产尿小便嘘嘘| 久久久久久综合| 成人黄色777网| 一级日本不卡的影视| 91精品国产一区二区人妖| 人禽交欧美网站| 久久久蜜桃精品| 色中色一区二区| 欧美a级一区二区| 欧美激情一区二区三区不卡| 色天使色偷偷av一区二区| 午夜精品久久久久久不卡8050 | 久久婷婷国产综合国色天香| 成人免费高清在线| 天天影视涩香欲综合网| 国产亚洲精品资源在线26u| 在线一区二区视频|