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

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

?? quc.c

?? nucleas source code
?? C
?? 第 1 頁(yè) / 共 5 頁(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       */
/*                                                                       */
/*      quc.c                                          Nucleus PLUS 1.14 */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      QU - Queue Management                                            */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains the core routines for the Queue management    */
/*      component.                                                       */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      QUC_Create_Queue                    Create a message queue       */
/*      QUC_Delete_Queue                    Delete a message queue       */
/*      QUC_Send_To_Queue                   Send message to a queue      */
/*      QUC_Receive_From_Queue              Receive a message from queue */
/*      QUC_Cleanup                         Cleanup on timeout or a      */
/*                                            terminate condition        */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      cs_extr.h                           Common Service functions     */
/*      tc_extr.h                           Thread Control functions     */
/*      qu_extr.h                           Queue functions              */
/*      hi_extr.h                           History functions            */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      08-09-1993      Corrected pointer retrieval                      */
/*                      loop, resulting in version 1.0a                  */
/*      08-09-1993      Verified version 1.0a                            */
/*      11-01-1993      Corrected a problem with fixed-                  */
/*                      size queues of a size equal to                   */
/*                      one message, resulting in                        */
/*                      version 1.0b                                     */
/*      11-01-1993      Verified version 1.0b                            */
/*      03-01-1994      Moved non-core functions into                    */
/*                      supplemental files, changed                      */
/*                      function interfaces to match                     */
/*                      those in prototype, added                        */
/*                      register options, changed                        */
/*                      protection logic to reduce                       */
/*                      overhead, corrected bug in                       */
/*                      queue reset, optimized item                      */
/*                      copy loops, resulting in                         */
/*                      version 1.1                                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      04-17-1996      updated to version 1.2                           */
/*      01-28-1998      Corrected SPR412 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        "qu_extr.h"                 /* Queue functions           */
#include        "hi_extr.h"                 /* History functions         */


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

extern CS_NODE         *QUD_Created_Queues_List;
extern UNSIGNED         QUD_Total_Queues;
extern TC_PROTECT       QUD_List_Protect;


/* Define internal component function prototypes.  */

VOID    QUC_Cleanup(VOID *information);


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      QUC_Create_Queue                                                 */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function creates a queue and then places it on the list     */
/*      of created queues.                                               */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      QUCE_Create_Queue                   Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Place_On_List                   Add node to linked-list      */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Protect                         Protect created list         */
/*      TCT_Unprotect                       Un-protect data structure    */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      queue_ptr                           Queue control block pointer  */
/*      name                                Queue name                   */
/*      start_address                       Starting address of actual   */
/*                                            queue area                 */
/*      queue_size                          Total size of queue          */
/*      message_type                        Type of message supported by */
/*                                            the queue (fixed/variable) */
/*      message_size                        Size of message.  Variable   */
/*                                            message-length queues, this*/
/*                                            represents the maximum size*/
/*      suspend_type                        Suspension type              */
/*                                                                       */
/* 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,                          */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  QUC_Create_Queue(NU_QUEUE *queue_ptr, CHAR *name,
                      VOID *start_address, UNSIGNED queue_size,
                      OPTION message_type, UNSIGNED message_size,
                      OPTION suspend_type)
{

R1 QU_QCB      *queue;                      /* Queue control block ptr   */
INT             i;                          /* Working index variable    */
NU_SUPERV_USER_VARIABLES

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

    /* Move input queue pointer into internal pointer.  */
    queue =  (QU_QCB *) queue_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_CREATE_QUEUE_ID, (UNSIGNED) queue,
                                (UNSIGNED) name, (UNSIGNED) start_address);

#endif

    /* First, clear the queue ID just in case it is an old Queue
       Control Block.  */
    queue -> qu_id =             0;

    /* Fill in the queue name.  */
    for (i = 0; i < NU_MAX_NAME; i++)
        queue -> qu_name[i] =  name[i];

    /* Setup the queue suspension type.  */
    if (suspend_type == NU_FIFO)

        /* FIFO suspension is selected, setup the flag accordingly.  */
        queue -> qu_fifo_suspend =  NU_TRUE;

    else

        /* Priority suspension is selected.  */
        queue -> qu_fifo_suspend =  NU_FALSE;

    /* Setup the queue message type.  */
    if (message_type == NU_FIXED_SIZE)

        /* Fixed-size messages are required.  */
        queue -> qu_fixed_size =  NU_TRUE;
    else

        /* Variable-size messages are required.  */
        queue -> qu_fixed_size =  NU_FALSE;

    /* Setup the message size.  */
    queue -> qu_message_size =  message_size;

    /* Clear the messages counter.   */
    queue -> qu_messages =  0;

    /* Setup the actual queue parameters.  */
    queue -> qu_queue_size =    queue_size;

    /* If the queue supports fixed-size messages, make sure that the queue
       size is an even multiple of the message size.  */
    if (queue -> qu_fixed_size)

        /* Adjust the area of the queue being used.  */
        queue_size =  (queue_size / message_size) * message_size;

    queue -> qu_available =     queue_size;
    queue -> qu_start =         (UNSIGNED *) start_address;
    queue -> qu_end =           queue -> qu_start + queue_size;
    queue -> qu_read =          (UNSIGNED *) start_address;
    queue -> qu_write =         (UNSIGNED *) start_address;

    /* Clear the suspension list pointer.  */
    queue -> qu_suspension_list =  NU_NULL;

    /* Clear the number of tasks waiting on the queue counter.  */
    queue -> qu_tasks_waiting =  0;

    /* Clear the urgent message list pointer.  */
    queue -> qu_urgent_list =  NU_NULL;

    /* Initialize link pointers.  */
    queue -> qu_created.cs_previous =    NU_NULL;
    queue -> qu_created.cs_next =        NU_NULL;

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

    /* At this point the queue is completely built.  The ID can now be
       set and it can be linked into the created queue list.  */
    queue -> qu_id =                     QU_QUEUE_ID;

    /* Link the queue into the list of created queues and increment the
       total number of queues in the system.  */
    CSC_Place_On_List(&QUD_Created_Queues_List, &(queue -> qu_created));
    QUD_Total_Queues++;

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

    /* Release protection against access to the list of created queues.  */
    TCT_Unprotect();

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

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


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      QUC_Delete_Queue                                                 */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区成人在线视频| 亚洲精品国产视频| 在线观看网站黄不卡| 久久疯狂做爰流白浆xx| 一区二区在线看| 国产色产综合色产在线视频| 欧美午夜不卡视频| zzijzzij亚洲日本少妇熟睡| 男女男精品网站| 一区二区欧美视频| 中文字幕成人av| 日韩视频在线一区二区| 欧洲激情一区二区| 99re视频精品| 国产精品白丝jk白祙喷水网站| 午夜精品一区二区三区三上悠亚| 17c精品麻豆一区二区免费| 久久影院午夜片一区| 欧美精品久久一区二区三区| 欧洲在线/亚洲| 99久久婷婷国产综合精品| 国产一级精品在线| 麻豆精品新av中文字幕| 亚洲sss视频在线视频| 夜夜夜精品看看| 亚洲免费资源在线播放| 亚洲色图欧洲色图婷婷| 亚洲天堂福利av| 国产精品久久久久影院色老大 | 精品一区二区在线视频| 亚洲高清免费视频| 亚洲午夜精品在线| 一区二区三区日本| 亚洲精品欧美激情| 亚洲精品伦理在线| 亚洲自拍偷拍综合| 亚洲国产精品一区二区www| 亚洲精品精品亚洲| 亚洲精品视频一区| 亚洲宅男天堂在线观看无病毒| 亚洲精品中文字幕乱码三区| 亚洲色图20p| 亚洲一级二级三级在线免费观看| 亚洲综合一区在线| 亚洲高清免费视频| 蜜臀精品一区二区三区在线观看| 午夜在线成人av| 男人的天堂亚洲一区| 麻豆成人免费电影| 国产精品自拍在线| 成人不卡免费av| 91丨porny丨最新| 欧美亚洲动漫精品| 777午夜精品视频在线播放| 日韩视频免费直播| 久久九九国产精品| 亚洲黄色在线视频| 日韩电影在线观看网站| 国产一本一道久久香蕉| 99久免费精品视频在线观看 | 在线观看91av| 精品奇米国产一区二区三区| 国产三级精品三级| 亚洲欧美另类综合偷拍| 亚洲电影中文字幕在线观看| 美女视频免费一区| 岛国精品在线观看| 欧美日韩一级二级三级| 久久综合色婷婷| 日韩毛片精品高清免费| 图片区日韩欧美亚洲| 久久精品国产在热久久| 粉嫩aⅴ一区二区三区四区| 91在线丨porny丨国产| 欧美日韩精品一区视频| 精品盗摄一区二区三区| 亚洲天堂精品视频| 麻豆国产精品777777在线| kk眼镜猥琐国模调教系列一区二区| 在线中文字幕不卡| 欧美mv和日韩mv国产网站| 中文字幕亚洲电影| 日本麻豆一区二区三区视频| 成人国产精品免费观看视频| 欧美日韩不卡在线| 日本一区二区三区在线不卡| 亚洲精品va在线观看| 国产自产高清不卡| 欧美三级视频在线观看| 欧美激情一区二区三区蜜桃视频| 亚洲一二三专区| 成人丝袜高跟foot| 日韩女同互慰一区二区| 亚洲免费电影在线| 国产aⅴ精品一区二区三区色成熟| 在线观看网站黄不卡| 国产色综合一区| 蜜臀久久99精品久久久画质超高清| 91小视频免费看| 久久久久亚洲蜜桃| 偷偷要91色婷婷| 日本韩国欧美国产| 国产亚洲欧美日韩在线一区| 图片区小说区国产精品视频| 色综合久久久久综合| 久久美女高清视频| 捆绑紧缚一区二区三区视频| 在线视频国内自拍亚洲视频| 中文字幕国产一区| 国产专区欧美精品| 欧美一区三区四区| 亚洲第一精品在线| 91成人国产精品| 亚洲三级久久久| av一二三不卡影片| 国产日产精品一区| 国产精品一区二区在线播放| 欧美xxx久久| 麻豆精品久久久| 欧美成人精品二区三区99精品| 亚洲成a人片在线不卡一二三区| 色域天天综合网| 自拍偷拍国产精品| 91浏览器在线视频| 亚洲男人的天堂av| 色视频一区二区| 亚洲一区二区三区四区中文字幕| 色偷偷88欧美精品久久久| 国产精品久久国产精麻豆99网站| 国产激情一区二区三区| 国产校园另类小说区| 韩国一区二区视频| 久久久噜噜噜久噜久久综合| 国产一区二区精品久久91| 欧美精品一区男女天堂| 国产一区欧美二区| 国产亚洲欧美日韩在线一区| 国产成人丝袜美腿| 国产精品久久久久婷婷| 99精品在线免费| 亚洲裸体xxx| 欧美视频日韩视频| 日日夜夜免费精品视频| 日韩色视频在线观看| 韩国一区二区在线观看| 中文字幕精品综合| 色乱码一区二区三区88| 亚洲国产你懂的| 欧美一区二区播放| 国产成人午夜99999| 中文字幕一区二| 欧洲精品一区二区| 美腿丝袜亚洲综合| 国产欧美日韩综合精品一区二区| 成人av在线资源| 亚洲男人的天堂在线观看| 欧美久久久久久蜜桃| 久久国产福利国产秒拍| 中文字幕第一区二区| 色94色欧美sute亚洲13| 日韩激情视频在线观看| 欧美videos中文字幕| 成人午夜激情影院| 亚洲一区二区偷拍精品| 91精品国产一区二区人妖| 黑人巨大精品欧美黑白配亚洲| 中国色在线观看另类| 欧美中文字幕一区| 国产一区二区三区av电影 | 日本欧美肥老太交大片| 久久久不卡网国产精品一区| 日本伦理一区二区| 蜜臀av国产精品久久久久| 中文字幕欧美区| 欧美日韩视频专区在线播放| 久久国产综合精品| 亚洲精品视频自拍| 精品福利在线导航| 欧美丝袜丝交足nylons| 国产毛片一区二区| 一区二区三区国产豹纹内裤在线| 精品久久久久香蕉网| 色婷婷精品大在线视频| 国产一区二区成人久久免费影院| 亚洲综合在线第一页| 久久久久久久久久久久电影| 欧美亚洲一区二区在线| 国产成人亚洲综合a∨猫咪| 亚洲福利视频一区二区| 国产精品免费网站在线观看| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 制服丝袜成人动漫| 岛国一区二区三区| 麻豆精品国产传媒mv男同| 亚洲乱码一区二区三区在线观看| 精品久久久久99| 欧美日韩大陆在线| 北条麻妃一区二区三区| 精品亚洲porn| 天天做天天摸天天爽国产一区|