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

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

?? memvar.hxx

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

//==========================================================================
//
//      memvar.hxx
//
//      Memory pool with variable block 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):    dsm, jlarmour
// Contributors: 
// Date:         2000-06-12
// Purpose:      Define Memvar class interface
// Description:  Inline class for constructing a variable block allocator
// Usage:        #include <cyg/memalloc/memvar.hxx>
//              
//
//####DESCRIPTIONEND####
//
//==========================================================================

// CONFIGURATION

#include <pkgconf/memalloc.h>
#ifdef CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_THREADAWARE
# include <pkgconf/system.h>
# ifdef CYGPKG_KERNEL
#  include <pkgconf/kernel.h>
# endif
#endif

// when used as an implementation for malloc, we need the following
// to let the system know the name of the class
#define CYGCLS_MEMALLOC_MALLOC_IMPL Cyg_Mempool_Variable

// if the implementation is all that's required, don't output anything else
#ifndef __MALLOC_IMPL_WANTED
// INCLUDES

#include <cyg/infra/cyg_type.h>        // types
#include <cyg/infra/cyg_ass.h>         // assertion macros

#ifdef CYGFUN_KERNEL_THREADS_TIMER
# include <cyg/kernel/ktypes.h>        // cyg_tick_count
#endif

#ifdef CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_THREADAWARE
# include <cyg/memalloc/mempolt2.hxx>  // kernel safe mempool template
#endif

#include <cyg/memalloc/mvarimpl.hxx>   // implementation of a variable mem pool
#include <cyg/memalloc/common.hxx>     // Common memory allocator infra


// TYPE DEFINITIONS

class Cyg_Mempool_Variable
{
protected:
#ifdef CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_THREADAWARE
    Cyg_Mempolt2<Cyg_Mempool_Variable_Implementation> mypool;
#else
    Cyg_Mempool_Variable_Implementation mypool;
#endif

public:
    // This API makes concrete a class which implements a thread-safe
    // kernel-savvy memory pool which manages variable size blocks.

    // Constructor: gives the base and size of the arena in which memory is
    // to be carved out, note that management structures are taken from the
    // same arena.
    Cyg_Mempool_Variable( cyg_uint8 * /* base */, cyg_int32  /* size */,
                          cyg_int32 /* alignment */=8);

    // Destructor
    ~Cyg_Mempool_Variable();

    // get some memory; wait if none available
    // if we aren't configured to be thread-aware this is irrelevant
#ifdef CYGSEM_MEMALLOC_ALLOCATOR_VARIABLE_THREADAWARE
    cyg_uint8 *
    alloc( cyg_int32 /* size */ );
    
# ifdef CYGFUN_KERNEL_THREADS_TIMER
    // get some memory with a timeout
    cyg_uint8 *
    alloc( cyg_int32 /* size */, cyg_tick_count /* delay_timeout */ );
# endif
#endif

    // get some memory, return NULL if none available
    cyg_uint8 *
    try_alloc( cyg_int32 /* size */ );
    
    // resize existing allocation, if oldsize is non-NULL, previous
    // allocation size is placed into it. If previous size not available,
    // it is set to 0. NB previous allocation size may have been rounded up.
    // Occasionally the allocation can be adjusted *backwards* as well as,
    // or instead of forwards, therefore the address of the resized
    // allocation is returned, or NULL if no resizing was possible.
    // Note that this differs from ::realloc() in that no attempt is
    // made to call malloc() if resizing is not possible - that is left
    // to higher layers. The data is copied from old to new though.
    // The effects of alloc_ptr==NULL or newsize==0 are undefined
    cyg_uint8 *
    resize_alloc( cyg_uint8 * /* alloc_ptr */, cyg_int32 /* newsize */,
                  cyg_int32 * /* oldsize */ =NULL );

    // free the memory back to the pool
    // returns true on success
    cyg_bool
    free( cyg_uint8 * /* ptr */, cyg_int32 /* size */ =0 );

    // Get memory pool status
    // flags is a bitmask of requested fields to fill in. The flags are
    // defined in common.hxx
    void
    get_status( cyg_mempool_status_flag_t /* flags */,
                Cyg_Mempool_Status & /* status */ );

    CYGDBG_DEFINE_CHECK_THIS
};

#endif // ifndef __MALLOC_IMPL_WANTED

#endif // ifndef CYGONCE_MEMALLOC_MEMVAR_HXX
// EOF memvar.hxx

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆精品在线视频| 国产午夜精品一区二区三区嫩草| 一区二区三区中文字幕精品精品 | 色欧美日韩亚洲| 亚洲乱码中文字幕| 在线免费不卡电影| 亚洲一级不卡视频| 日韩午夜在线观看视频| 狠狠久久亚洲欧美| 日本一区二区动态图| 91麻豆福利精品推荐| 亚洲r级在线视频| 精品伦理精品一区| 国产成人av一区二区三区在线观看| 中文字幕精品一区二区精品绿巨人 | 国产一区二区伦理片| 亚洲成av人片一区二区三区| 欧美色综合影院| 久久精品国产999大香线蕉| 91在线精品一区二区| 欧美日韩国产三级| 国产毛片精品视频| 奇米精品一区二区三区在线观看| 亚洲小说春色综合另类电影| 成人欧美一区二区三区黑人麻豆| 欧美精品一区二区三区蜜桃| 日韩一区二区在线免费观看| 欧美日韩国产另类一区| 在线观看91视频| 色婷婷亚洲一区二区三区| 成人黄色av网站在线| 国产另类ts人妖一区二区| 免费在线观看一区| 日本大胆欧美人术艺术动态| 五月激情丁香一区二区三区| 亚洲综合在线视频| 亚洲欧美一区二区三区孕妇| 国产精品三级av| 国产欧美精品区一区二区三区| 2023国产精品视频| 国产午夜精品久久久久久免费视 | 中文字幕免费观看一区| 欧美精品一区二区三区在线播放 | 99精品视频在线免费观看| 国产精品白丝jk白祙喷水网站| 国产一区啦啦啦在线观看| 久久av中文字幕片| 国产另类ts人妖一区二区| 国产成人亚洲综合a∨猫咪| 国产在线一区二区综合免费视频| 欧美写真视频网站| 欧美精品日韩一区| 日韩欧美电影在线| 精品国产三级电影在线观看| 久久久精品黄色| 中文字幕乱码亚洲精品一区 | 久久99热这里只有精品| 国产永久精品大片wwwapp| 国产一本一道久久香蕉| 丰满亚洲少妇av| 99亚偷拍自图区亚洲| 欧美在线一区二区| 日韩精品专区在线影院重磅| 国产人成亚洲第一网站在线播放| 亚洲色图都市小说| 亚洲成在人线免费| 另类小说综合欧美亚洲| 粉嫩一区二区三区性色av| 91网上在线视频| 欧美一卡二卡在线观看| 国产欧美一区二区三区在线老狼| 亚洲欧洲精品一区二区三区 | 色乱码一区二区三区88| 欧美精品在线观看播放| 久久奇米777| 亚洲猫色日本管| 日韩电影在线看| 丁香一区二区三区| 欧美视频一区在线观看| 久久日一线二线三线suv| 成人欧美一区二区三区视频网页| 日韩高清一区二区| 丁香激情综合国产| 欧美美女一区二区三区| 欧美精品一区二区三区很污很色的| 国产精品国产馆在线真实露脸 | 久久国产免费看| 成人一区在线观看| 在线不卡欧美精品一区二区三区| 国产日韩欧美一区二区三区综合| 亚洲第一激情av| 国产99久久久久| 91精品国产欧美一区二区18| 亚洲欧洲国产日本综合| 蜜桃视频在线一区| 91久久精品日日躁夜夜躁欧美| wwwwww.欧美系列| 午夜精品福利一区二区三区蜜桃| 丰满白嫩尤物一区二区| 日韩欧美一卡二卡| 亚洲成人av一区| 91伊人久久大香线蕉| 久久噜噜亚洲综合| 秋霞av亚洲一区二区三| 91视频国产资源| 国产午夜亚洲精品羞羞网站| 欧美a级理论片| 欧洲色大大久久| 亚洲欧洲99久久| 国产精品18久久久久久久网站| 欧美精品一级二级| 亚洲一区二区在线免费看| 国产大陆亚洲精品国产| 精品国产乱码久久久久久牛牛 | 99久久精品99国产精品| 日韩一区二区中文字幕| 亚洲一区二区高清| 色呦呦一区二区三区| 国产欧美日本一区二区三区| 蜜臀av一区二区三区| 欧美日韩aaaaaa| 亚洲综合成人网| 色婷婷精品久久二区二区蜜臀av| 国产精品久久久久毛片软件| 国产电影精品久久禁18| 久久综合色天天久久综合图片| 久久精品99国产国产精| 91精品国产福利在线观看| 香蕉久久夜色精品国产使用方法| 日本韩国一区二区三区视频| 亚洲欧洲av另类| 色综合天天做天天爱| 成人欧美一区二区三区在线播放| av中文字幕在线不卡| 国产精品久99| 成人av网站在线| 一区在线观看免费| 91蜜桃免费观看视频| 亚洲精品乱码久久久久| 欧美中文字幕亚洲一区二区va在线| 一区二区三区精品| 欧美性三三影院| 日本成人在线电影网| 欧美电视剧免费观看| 狠狠色丁香婷婷综合久久片| 久久天天做天天爱综合色| 国产成人综合在线播放| 国产亚洲欧美一区在线观看| 成人av网站在线观看| 一区二区三区色| 欧美精品日韩精品| 久久国产综合精品| 久久亚洲精品小早川怜子| 成人午夜大片免费观看| 亚洲日韩欧美一区二区在线| 欧洲精品视频在线观看| 日韩高清在线电影| 久久久精品国产免费观看同学| 成人黄色小视频在线观看| 亚洲人快播电影网| 欧美日韩卡一卡二| 狠狠色丁香婷婷综合| 18成人在线观看| 欧美一区二区性放荡片| 国产精品一区一区| 亚洲日本韩国一区| 91麻豆精品国产91久久久资源速度| 久久草av在线| 亚洲人123区| 日韩女优av电影| av网站免费线看精品| 天堂精品中文字幕在线| 久久精品在这里| 在线视频一区二区三| 黄色日韩三级电影| 亚洲精品国产一区二区精华液| 这里只有精品99re| 白白色 亚洲乱淫| 青青国产91久久久久久| 国产精品久久久久久久久免费丝袜| 在线观看不卡一区| 国产伦精一区二区三区| 亚洲激情中文1区| 精品国产一区二区三区久久影院 | 日韩女优制服丝袜电影| 成人午夜免费视频| 日韩经典中文字幕一区| 国产精品免费免费| 日韩欧美卡一卡二| 欧美中文字幕一区二区三区 | 国产一区二区按摩在线观看| 亚洲黄色小视频| 欧美精品一区二区三区蜜桃| 91成人免费电影| 国产精品亚洲人在线观看| 亚洲一区二区三区四区在线| 日本一区二区动态图| 欧美一区二区三区在线看| 色婷婷精品大在线视频| 国产成人在线视频网址|