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

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

?? quc.c

?? 基于OMAP1510的Nucleus移植代碼
?? 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一区二区三区免费野_久草精品视频
精品国产一区二区三区忘忧草| 日韩三级视频中文字幕| 99麻豆久久久国产精品免费| 综合分类小说区另类春色亚洲小说欧美| 国产成人自拍网| 日本免费在线视频不卡一不卡二| 久久―日本道色综合久久| 欧美疯狂做受xxxx富婆| 一本色道**综合亚洲精品蜜桃冫| 国产精品一区二区你懂的| 日韩制服丝袜先锋影音| 欧美特级限制片免费在线观看| 99r国产精品| 成人午夜私人影院| 国产一区二区中文字幕| 日日夜夜精品视频天天综合网| 三级亚洲高清视频| 亚洲va天堂va国产va久| 亚洲午夜久久久久久久久久久| 欧美国产激情一区二区三区蜜月| 8v天堂国产在线一区二区| 日韩精品在线一区| av电影在线观看一区| 丁香婷婷综合五月| 国产精品系列在线观看| 色呦呦国产精品| 色综合久久综合网| 国产九色精品成人porny| 卡一卡二国产精品| 久久精品一区蜜桃臀影院| 色就色 综合激情| 亚洲日本成人在线观看| 国产欧美一区二区精品性色| 91精品国产综合久久久久久漫画| 欧美精品少妇一区二区三区 | 毛片av中文字幕一区二区| 国产精品久久久久久久久搜平片| 精品噜噜噜噜久久久久久久久试看| 欧美熟乱第一页| 亚洲综合色视频| 午夜国产精品一区| 日韩国产欧美在线视频| av午夜精品一区二区三区| 99久久99久久久精品齐齐| 成人高清视频免费观看| 成人午夜激情影院| 欧美一级黄色大片| 国产精品国产自产拍高清av| 亚洲女子a中天字幕| 亚洲国产你懂的| 成人在线一区二区三区| 欧美在线制服丝袜| 91精品国产丝袜白色高跟鞋| 中文字幕一区二区三区乱码在线 | 精品99999| 香蕉乱码成人久久天堂爱免费| 日韩电影在线免费看| 国产精品夜夜嗨| 欧美怡红院视频| 久久精品亚洲一区二区三区浴池| 亚洲视频网在线直播| 美女视频网站久久| 一本一本大道香蕉久在线精品 | 欧美精品乱码久久久久久按摩 | 免费看日韩精品| 99久久精品国产一区| 欧美日韩久久久一区| 精品国产一区二区三区忘忧草 | 国产成人精品1024| 日韩欧美久久久| 亚洲精品视频在线看| 国产在线精品一区二区三区不卡| 岛国av在线一区| 中文字幕欧美国产| 国内偷窥港台综合视频在线播放| 91丝袜美腿高跟国产极品老师 | 综合分类小说区另类春色亚洲小说欧美| 婷婷开心久久网| 成人精品免费视频| 久久久久综合网| 美女性感视频久久| 欧美影院一区二区三区| 成人午夜短视频| 五月天激情小说综合| 亚洲精品视频在线观看网站| 免费在线观看日韩欧美| 国产视频亚洲色图| 精品一区二区综合| 日韩一区二区在线免费观看| 亚洲九九爱视频| 一本色道久久综合亚洲91| 国产99久久精品| 亚洲高清免费观看| 美女免费视频一区| 欧美一区二区视频观看视频| 中文字幕中文字幕中文字幕亚洲无线| 国产成人亚洲综合色影视| 久久精品视频网| 一区二区三区国产精华| 久久精品视频免费| 欧美乱熟臀69xxxxxx| 中文字幕不卡一区| av在线不卡电影| 亚洲欧美国产高清| 欧美日韩国产一区二区三区地区| 91麻豆精品国产| 国产91综合网| 成人性生交大片免费看中文| 国产午夜精品在线观看| 蜜臂av日日欢夜夜爽一区| 91精品办公室少妇高潮对白| 亚洲午夜久久久久中文字幕久| 国产欧美一区二区精品婷婷| 国产在线精品一区二区不卡了| 亚洲另类一区二区| 亚洲精品在线观| 欧美亚洲国产一区二区三区va| 奇米在线7777在线精品| 亚洲欧洲av在线| 精品国产髙清在线看国产毛片| caoporm超碰国产精品| 日韩高清在线一区| 综合色中文字幕| 精品成人免费观看| 欧美日韩视频在线一区二区| 91啪在线观看| 欧美日韩亚洲综合在线 | 国产一区二区三区在线观看精品 | 欧美三级电影一区| 国产精品 欧美精品| 亚洲午夜久久久久久久久电影网| 国产欧美日韩不卡| 成人在线视频一区| 五月天亚洲婷婷| 国产欧美一区二区三区沐欲| 欧美精品日韩精品| 欧美色图片你懂的| 99精品国产91久久久久久| 国内外成人在线| 秋霞影院一区二区| 午夜精品福利在线| 亚洲影视在线观看| 亚洲美女视频一区| 国产精品欧美一级免费| 国产女主播在线一区二区| 精品精品国产高清a毛片牛牛 | 51精品国自产在线| 欧美性极品少妇| 91黄视频在线| 色悠悠久久综合| 色一情一伦一子一伦一区| 国产激情一区二区三区四区| 精品一区二区三区免费观看| 人人爽香蕉精品| 美女免费视频一区| 精一区二区三区| 国产一区 二区 三区一级| 狠狠色丁香婷综合久久| 国产做a爰片久久毛片| 麻豆久久久久久久| 制服丝袜中文字幕亚洲| 日本精品免费观看高清观看| 91免费视频网址| 欧美这里有精品| 欧美一区二区高清| 日韩欧美国产不卡| 久久久久综合网| 综合激情网...| 视频一区二区不卡| 国产福利一区二区三区视频在线 | 欧美日韩国产综合一区二区三区 | 91看片淫黄大片一级在线观看| 91欧美一区二区| 色综合久久66| 日韩一区和二区| 欧美激情在线观看视频免费| 国产精品国产三级国产aⅴ中文| 亚洲图片另类小说| 日韩二区在线观看| 免费日韩伦理电影| 国产精品香蕉一区二区三区| 成人美女在线观看| 欧美视频中文字幕| 久久综合九色综合97_久久久| 国产色一区二区| 亚洲综合区在线| 国产一区二区三区在线观看精品| 99riav久久精品riav| 欧美一二三四区在线| 国产精品国产自产拍高清av| 天堂午夜影视日韩欧美一区二区| 精品一二三四区| 欧美在线一区二区| 国产欧美综合在线观看第十页| 一区二区国产盗摄色噜噜| 国产一区二区三区免费播放| 在线观看中文字幕不卡| 久久久五月婷婷| 免费人成黄页网站在线一区二区| 成人av在线网站|