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

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

?? mboxt2.hxx

?? ecos下的gui開發(fā)源代碼
?? HXX
字號(hào):
#ifndef CYGONCE_KERNEL_MBOXT2_HXX
#define CYGONCE_KERNEL_MBOXT2_HXX

//==========================================================================
//
//      mboxt2.hxx
//
//      Mboxt2 (Message Box/Mailbox) class declarations
//
//==========================================================================
//####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):   hmt
// Contributors:        hmt
// Date:        1998-02-10
// Purpose:     Define Mboxt2 class interfaces
// Description: The classes defined here provide the APIs for mboxt2es.
// Usage:       #include <cyg/kernel/mboxt2.hxx>
//              #include <cyg/kernel/mboxt2.inl>
//              
//
//####DESCRIPTIONEND####
//
//==========================================================================

#include <cyg/kernel/ktypes.h>
#include <cyg/infra/cyg_ass.h>            // assertion macros
#include <cyg/kernel/thread.hxx>
#include <cyg/kernel/thread.inl>

// -------------------------------------------------------------------------
// Message/Mail Box.  This template implements a queue of T's.
// Implemented as a template for maximal flexibility; one would hope
// that only one, with T==(void *) and the same number of them,
// is ever used without very good reason.

// Cyg_Mboxt2 has a fixed size array of T's; one size fits all.

template <class T, cyg_count32 QUEUE_SIZE>
class Cyg_Mboxt2
{
private:
    cyg_count32         base;           // index of first used slot
    cyg_count32         count;          // count of used slots
    Cyg_ThreadQueue     get_threadq;    // Queue of waiting threads
#ifdef CYGMFN_KERNEL_SYNCH_MBOXT_PUT_CAN_WAIT
    Cyg_ThreadQueue     put_threadq;    // Queue of waiting threads
#endif
    static const
    cyg_count32         size = QUEUE_SIZE;
    T                   itemqueue[ QUEUE_SIZE ];
                                        // queue of items
    // private utility functions
    // wake up a thread from some queue
    inline void         wakeup_winner( const T &msg );
#ifdef CYGMFN_KERNEL_SYNCH_MBOXT_PUT_CAN_WAIT
    inline void         wakeup_putter( void );
#endif

public:

    CYGDBG_DEFINE_CHECK_THIS
    
    Cyg_Mboxt2();                        // Constructor
    ~Cyg_Mboxt2();                       // Destructor
        
    cyg_bool    get( T &ritem );        // get an item; wait if none
#ifdef CYGFUN_KERNEL_THREADS_TIMER
    cyg_bool    get( T &ritem, cyg_tick_count abs_timeout );
#endif
    cyg_bool    tryget( T &ritem );     // just one attempt

    cyg_bool    peek_item( T &ritem );  // get next item without
                                        // removing it

#ifdef CYGMFN_KERNEL_SYNCH_MBOXT_PUT_CAN_WAIT
    cyg_bool    put( const T item );    // put an item; wait if full
#ifdef CYGFUN_KERNEL_THREADS_TIMER
    cyg_bool    put( const T item, cyg_tick_count abs_timeout );
#endif
#endif
    cyg_bool    tryput( const T item ); // fails if Q full

    inline
    cyg_count32 peek()                  // Get current count value
    {
        return count;
    }

    inline
    cyg_bool    waiting_to_get()        // Any threads waiting?
    {
        return ! get_threadq.empty();
    }

    inline
    cyg_bool    waiting_to_put()        // Any threads waiting?
    {
#ifdef CYGMFN_KERNEL_SYNCH_MBOXT_PUT_CAN_WAIT
        return ! put_threadq.empty();
#else
        return false;
#endif
    }
};

// -------------------------------------------------------------------------
#endif // ifndef CYGONCE_KERNEL_MBOXT2_HXX
// EOF mboxt2.hxx

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕第一页久久| 久久久久久久久免费| 久久国产精品第一页| 亚洲成人免费在线观看| 综合激情成人伊人| 亚洲欧美自拍偷拍| 国产精品视频第一区| 久久久久久久久岛国免费| 久久精品人人爽人人爽| 精品国一区二区三区| 欧美成人性战久久| 日韩欧美不卡在线观看视频| 欧美肥妇毛茸茸| 欧美精品久久99| 欧美性猛交xxxxxx富婆| 欧美调教femdomvk| 91福利视频网站| 911精品产国品一二三产区| 7777女厕盗摄久久久| 欧美一级黄色大片| 精品国产91洋老外米糕| 久久久久免费观看| 国产精品国产三级国产aⅴ中文 | 亚洲精品国产视频| 亚洲视频 欧洲视频| 午夜精品久久久久久不卡8050| 午夜亚洲国产au精品一区二区| 欧美aaaaaa午夜精品| 国产精品一级在线| 99re成人精品视频| 欧美一级生活片| 精品国产123| 亚洲天堂a在线| 亚洲成人777| 国内外成人在线| 一本色道久久综合亚洲精品按摩| 欧美一区二区三区四区五区| 2020国产精品久久精品美国| 中文字幕一区在线| 日韩国产欧美三级| 成人一二三区视频| 777亚洲妇女| 中文字幕不卡在线| 日韩高清一区二区| 99久久精品国产毛片| 日韩欧美一区中文| 亚洲精品水蜜桃| 丰满少妇久久久久久久| 欧美久久久影院| 综合色天天鬼久久鬼色| 免费av网站大全久久| 91小视频免费看| 国产亚洲婷婷免费| 蜜桃av噜噜一区二区三区小说| 99久久精品情趣| 国产日韩欧美a| 奇米一区二区三区av| 色婷婷精品大视频在线蜜桃视频| 精品毛片乱码1区2区3区| 亚洲成人动漫一区| 色综合一个色综合亚洲| 国产日产亚洲精品系列| 免费的国产精品| 欧美理论电影在线| 亚洲一区在线播放| 91麻豆高清视频| 亚洲美女偷拍久久| 成人精品视频一区二区三区| www久久久久| 理论电影国产精品| 欧美日韩黄视频| 亚洲福中文字幕伊人影院| av电影一区二区| 国产精品久线在线观看| 国产经典欧美精品| 国产欧美一二三区| 国产1区2区3区精品美女| 欧美va亚洲va国产综合| 久久精品国产77777蜜臀| 欧美日本免费一区二区三区| 亚洲一级片在线观看| 在线视频欧美区| 一区二区三区四区视频精品免费| 99久久婷婷国产综合精品电影| 国产精品美日韩| 成人黄色软件下载| 国产精品国产a| av毛片久久久久**hd| 最新国产成人在线观看| 成人av在线一区二区| 国产精品美女www爽爽爽| 成人精品视频一区二区三区尤物| 国产精品色噜噜| 色狠狠综合天天综合综合| 亚洲欧美日韩综合aⅴ视频| 日本国产一区二区| 国产在线不卡视频| 国产女人18毛片水真多成人如厕| 国产成人亚洲精品青草天美| 中文字幕一区在线观看视频| 色av成人天堂桃色av| 亚洲精品中文字幕在线观看| 欧美丰满少妇xxxxx高潮对白| 美女国产一区二区| 国产校园另类小说区| 91在线观看成人| 丝袜国产日韩另类美女| 亚洲国产精品99久久久久久久久| 91丨porny丨首页| 午夜精品成人在线| 国产日产欧美一区二区视频| 色综合天天在线| 看片的网站亚洲| 日韩伦理免费电影| 日韩欧美成人午夜| 91色porny在线视频| 人禽交欧美网站| 国产精品久久久一本精品| 欧美日韩大陆一区二区| 国产精品一区免费在线观看| 综合分类小说区另类春色亚洲小说欧美 | 日韩伦理免费电影| 欧美美女喷水视频| 国产一区 二区 三区一级| 一区二区三区四区高清精品免费观看| 欧美丰满一区二区免费视频| 成人av电影在线| 日韩成人午夜电影| 日韩理论电影院| 国产欧美精品在线观看| 欧美一区三区二区| 91亚洲精华国产精华精华液| 黑人巨大精品欧美一区| 亚洲综合色视频| 国产欧美日韩精品一区| 精品伦理精品一区| 欧美在线看片a免费观看| 国产精品99久久久久久似苏梦涵| 午夜精品视频一区| 亚洲黄色av一区| 国产精品久久久久久久久久久免费看 | 色综合天天综合| 成人精品一区二区三区四区 | 欧美日韩国产免费| 91在线播放网址| 成人听书哪个软件好| 国内欧美视频一区二区| 久久99热狠狠色一区二区| 亚洲最大色网站| 亚洲男同性视频| 国产精品不卡一区二区三区| 久久亚洲影视婷婷| 精品国产露脸精彩对白| 欧美一级艳片视频免费观看| 欧美日本韩国一区二区三区视频 | 美日韩一级片在线观看| 午夜国产精品一区| 亚洲一区二区影院| 亚洲一区二区三区三| 最新国产成人在线观看| 国产精品沙发午睡系列990531| 国产欧美日韩不卡免费| 欧美韩日一区二区三区| 国产精品电影院| 一区二区三区色| 视频在线观看一区二区三区| 亚洲综合视频在线| 亚洲国产精品精华液网站| 一区二区三区影院| 亚洲香肠在线观看| 丝袜诱惑制服诱惑色一区在线观看 | 久久99精品国产91久久来源| 韩国午夜理伦三级不卡影院| 久久99久久99| 国产高清久久久久| 不卡的av在线| 欧美在线观看一二区| 欧美日韩一级视频| 亚洲精品在线电影| 国产精品乱人伦中文| 一区二区三区不卡视频在线观看 | 九色porny丨国产精品| 狠狠色丁香久久婷婷综合丁香| 国产高清不卡二三区| 成人丝袜18视频在线观看| 色综合天天天天做夜夜夜夜做| 欧美日韩一区二区三区免费看 | 精品一区二区三区在线观看国产| 精品一区二区三区的国产在线播放| 国产在线不卡视频| av电影在线观看完整版一区二区| 欧美日韩精品一区视频| 欧美mv和日韩mv国产网站| 18成人在线视频| 日韩高清在线不卡| 91蝌蚪porny九色| 26uuu亚洲综合色欧美| 亚洲自拍偷拍麻豆| 精彩视频一区二区三区| 国产精一区二区三区|