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

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

?? mqueue.hxx

?? ecos下的gui開發源代碼
?? HXX
字號:
#ifndef CYGONCE_KERNEL_MQUEUE_HXX
#define CYGONCE_KERNEL_MQUEUE_HXX
/*========================================================================
//
//      mqueue.hxx
//
//      Message queues
//
//========================================================================
//####ECOSGPLCOPYRIGHTBEGIN####
// -------------------------------------------
// This file is part of eCos, the Embedded Configurable Operating System.
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
//
// eCos is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 or (at your option) any later version.
//
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// for more details.
//
// You should have received a copy of the GNU General Public License along
// with eCos; if not, write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
//
// As a special exception, if other files instantiate templates or use macros
// or inline functions from this file, or you compile this file and link it
// with other works to produce a work based on this file, this file does not
// by itself cause the resulting work to be covered by the GNU General Public
// License. However the source code for this file must still be made available
// in accordance with section (3) of the GNU General Public License.
//
// This exception does not invalidate any other reasons why a work based on
// this file might be covered by the GNU General Public License.
//
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
// at http://sources.redhat.com/ecos/ecos-license/
// -------------------------------------------
//####ECOSGPLCOPYRIGHTEND####
//========================================================================
//#####DESCRIPTIONBEGIN####
//
// Author(s):     jlarmour
// Contributors:  
// Date:          2000-05-09
// Purpose:       This file provides the interface for eCos message queues
// Description:   This differs from the message boxes also supported by
//                eCos primarily because the requirements of message
//                queues are driven by POSIX semantics. POSIX semantics are
//                more dynamic and therefore heavyweight than Mboxes,
//                including prioritization, and variable sized queues and
//                message lengths
// Usage:         #include <cyg/kernel/mqueue.hxx>
//
//####DESCRIPTIONEND####
//
//======================================================================
*/

/* CONFIGURATION */

#include <pkgconf/kernel.h>          /* Configuration header */

/* INCLUDES */

#include <stddef.h>                  /* size_t */
#include <cyg/infra/cyg_type.h>      /* Types */
#include <cyg/infra/cyg_ass.h>       /* CYGDBG_DEFINE_CHECK_THIS,
                                        CYGDBG_USE_ASSERTS */
#include <cyg/kernel/ktypes.h>       /* Kernel package types */
#include <cyg/kernel/sema.hxx>       /* Cyg_Counting_Semaphore */

/* CLASSES */

class Cyg_Mqueue {
public:
    typedef void (*callback_fn_t)(Cyg_Mqueue &q, CYG_ADDRWORD data);
    typedef void * (*qalloc_fn_t)(size_t len);
    typedef void (*qfree_fn_t)(void *ptr, size_t len);

    typedef enum {
        OK=0,
        NOMEM,
        WOULDBLOCK,
#ifdef CYGFUN_KERNEL_THREADS_TIMER
        TIMEOUT,
#endif
        INTR
    } qerr_t;

protected:
    struct qentry {
        struct qentry *next;
        unsigned int priority;
        size_t buflen;
        volatile bool busy;
        // data buffer follows here
        char *buf() const { return (char *)this + sizeof(*this); }
    };

    Cyg_Counting_Semaphore putsem, getsem;

    struct qentry *q;            // q entries in use
    struct qentry *freelist;     // q entries not in use
    void *queuespace;            // placeholder for the dynamically allocated
                                 // area

    size_t queuespacesize;

    qfree_fn_t free_fn;          // how to free queuespace when we destruct

    callback_fn_t callback;
    CYG_ADDRWORD callback_data;

    CYGDBG_DEFINE_CHECK_THIS

#ifdef CYGDBG_USE_ASSERTS
    long qlen;
    size_t msgsize;
#endif

public:

    Cyg_Mqueue( long maxmsgs, long maxmsgsize,
                qalloc_fn_t qalloc, qfree_fn_t qfree, qerr_t *err );
    ~Cyg_Mqueue();
    // put() copies len bytes of *buf into the queue at priority prio
    qerr_t put( const char *buf, size_t len, unsigned int prio, bool block=true
#ifdef CYGFUN_KERNEL_THREADS_TIMER
                ,cyg_tick_count timeout = 0
#endif
              );

    // get() returns the oldest highest priority message in the queue in *buf
    // and sets *prio to the priority (if prio is non-NULL) and *len to the
    // actual message size
    qerr_t get( char *buf, size_t *len, unsigned int *prio, bool block=true
#ifdef CYGFUN_KERNEL_THREADS_TIMER
                ,cyg_tick_count timeout = 0
#endif
              ); 

    // count() returns the number of messages in the queue
    long count();

    // Supply a callback function to call (with the supplied data argument)
    // when the queue goes from empty to non-empty (unless someone's already
    // doing a get()). This returns the old callback_fn, and if olddata is
    // non-NULL sets it to the old data (yes, really!)
    callback_fn_t setnotify( callback_fn_t callback_fn, CYG_ADDRWORD data,
                             CYG_ADDRWORD *olddata=NULL);
    
}; /* class Cyg_Mqueue */

#ifndef CYGIMP_KERNEL_SYNCH_MQUEUE_NOT_INLINE
# include <cyg/kernel/mqueue.inl>
#endif

#endif /* CYGONCE_KERNEL_MQUEUE_HXX multiple inclusion protection */

/* EOF mqueue.hxx */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线日韩国产精品| 日本午夜一区二区| av高清不卡在线| 国产精品伦一区二区三级视频| 国产美女精品一区二区三区| 国产亚洲精品资源在线26u| 国产高清在线精品| 亚洲天堂精品在线观看| 在线免费观看日本一区| 三级久久三级久久| 久久一区二区视频| 白白色 亚洲乱淫| 亚洲精品乱码久久久久久黑人| 91久久精品日日躁夜夜躁欧美| 婷婷开心激情综合| 久久久另类综合| 97久久久精品综合88久久| 亚洲成人久久影院| 久久蜜桃一区二区| 色一区在线观看| 久久精品国产第一区二区三区| 国产亚洲精品aa| 欧美日韩一本到| 狠狠色综合色综合网络| 专区另类欧美日韩| 欧美一区二区视频免费观看| 国产精品夜夜嗨| 亚洲午夜激情网页| 337p粉嫩大胆噜噜噜噜噜91av | 亚洲精品视频在线看| 3atv一区二区三区| 成人av网站免费| 亚洲 欧美综合在线网络| 国产亚洲欧美在线| 欧美吻胸吃奶大尺度电影| 国内不卡的二区三区中文字幕 | 亚洲在线成人精品| 欧美电视剧在线看免费| 91亚洲精品一区二区乱码| 精品在线一区二区| 亚洲综合精品久久| 2022国产精品视频| 欧美视频一区二区三区四区| 国产高清不卡一区二区| 亚洲第一激情av| 国产精品三级av| 日韩免费观看高清完整版| 色综合视频在线观看| 日本高清不卡一区| 国产大片一区二区| 毛片不卡一区二区| 亚洲综合色在线| 欧美激情自拍偷拍| 欧美一级欧美一级在线播放| 91蝌蚪porny九色| 福利一区二区在线| 九色|91porny| 日韩福利视频网| 一个色妞综合视频在线观看| 中文成人av在线| 国产亚洲欧美激情| 久久久777精品电影网影网 | 91蜜桃在线观看| 国产不卡免费视频| 国产一区二区三区视频在线播放| 日韩综合一区二区| 亚洲成av人片在线观看无码| 亚洲黄色性网站| 亚洲少妇屁股交4| 中文字幕亚洲一区二区av在线| 国产情人综合久久777777| 欧美不卡视频一区| 日韩免费看网站| 精品国产一二三区| 精品毛片乱码1区2区3区| 日韩欧美中文字幕一区| 日韩一区和二区| 欧美一区二区三区四区视频| 欧美理论电影在线| 91.com视频| 日韩女优视频免费观看| 欧美精品一区二区三区四区| 久久在线观看免费| 亚洲国产精品国自产拍av| 欧美国产日韩亚洲一区| 国产精品国产三级国产a| 国产精品国产成人国产三级 | 亚洲国产va精品久久久不卡综合| 一区二区三区国产精华| 亚洲图片有声小说| 婷婷夜色潮精品综合在线| 美女视频一区二区三区| 久久精品国产精品亚洲综合| 国产电影精品久久禁18| 成人一道本在线| 色吊一区二区三区 | 欧美一卡二卡三卡| 精品国产乱码久久久久久浪潮| 久久精品人人做人人爽人人| 中文字幕乱码久久午夜不卡 | 亚洲高清三级视频| 免费观看一级欧美片| 国产在线不卡一区| 成人免费视频网站在线观看| 色欧美日韩亚洲| 91麻豆精品国产| 中文字幕精品一区| 亚洲一区二区三区视频在线| 精品亚洲aⅴ乱码一区二区三区| 国产精品123区| 欧美亚洲国产怡红院影院| 日韩午夜激情电影| 中文字幕高清一区| 五月婷婷久久综合| 欧美国产日韩精品免费观看| 蜜桃视频第一区免费观看| 国产一区二区视频在线| 99re这里只有精品6| 91精品国产综合久久久久久漫画| 宅男在线国产精品| 国产精品午夜久久| 亚洲成av人在线观看| 黄色资源网久久资源365| 97成人超碰视| 精品人在线二区三区| 亚洲综合激情网| 国产精品中文有码| 在线电影院国产精品| 久久精品亚洲国产奇米99| 性做久久久久久免费观看| 高清不卡一区二区在线| 在线不卡中文字幕| 亚洲欧洲性图库| 精品一区中文字幕| 欧美性大战久久久久久久蜜臀| 国产三级精品视频| 蜜桃免费网站一区二区三区 | 色综合久久综合| 久久久久久免费| 奇米精品一区二区三区四区 | 久久久久久久久久久久久久久99| 亚洲香蕉伊在人在线观| 粉嫩aⅴ一区二区三区四区五区| 欧美精品高清视频| 1024精品合集| 粉嫩欧美一区二区三区高清影视| 日韩一级黄色大片| 午夜精品一区二区三区免费视频| 99久久精品一区| 国产丝袜在线精品| 精品一区二区三区欧美| 91精品国产综合久久福利软件| 亚洲精品ww久久久久久p站| 成人免费视频网站在线观看| 久久久精品人体av艺术| 美日韩一区二区三区| 欧美日韩国产影片| 一区二区三区在线观看欧美| 不卡的av在线播放| 久久精品男人天堂av| 国产一区视频导航| 久久噜噜亚洲综合| 国产精品一区免费视频| 久久人人97超碰com| 极品尤物av久久免费看| 日韩一区二区三区在线| 日本va欧美va精品发布| 欧美一区2区视频在线观看| 青青草国产精品97视觉盛宴 | 91麻豆精品一区二区三区| 亚洲欧洲三级电影| 99在线热播精品免费| 中文字幕亚洲在| 一本大道av伊人久久综合| 亚洲女厕所小便bbb| 色狠狠色噜噜噜综合网| 亚洲1区2区3区视频| 制服丝袜日韩国产| 九九热在线视频观看这里只有精品| 欧美成人女星排行榜| 国产精品一区免费视频| 成人免费小视频| 欧美日韩国产综合草草| 午夜av电影一区| 欧美成人乱码一区二区三区| 丁香啪啪综合成人亚洲小说 | 亚洲综合图片区| 69堂国产成人免费视频| 另类欧美日韩国产在线| 久久精品欧美日韩| 色国产综合视频| 日本女优在线视频一区二区| 欧美精品一区二区三区在线 | 日本一区二区免费在线观看视频| 成人看片黄a免费看在线| 亚洲视频一二三| 这里只有精品电影| 成人动漫视频在线| 天天亚洲美女在线视频| 2021国产精品久久精品|