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

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

?? sepmetaimpl.hxx

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

//==========================================================================
//
//      sepmetaimpl.hxx
//
//      Variable block memory pool with separate metadata 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):    jlarmour
// Contributors: 
// Date:         2001-06-28
// Purpose:      Define Sepmetaimpl class interface
// Description:  Inline class for constructing a variable block allocator
//               with separate metadata.
// Usage:        #include <cyg/memalloc/sepmetaimpl.hxx>
//              
//
//####DESCRIPTIONEND####
//
//==========================================================================


#include <cyg/infra/cyg_type.h>
#include <pkgconf/memalloc.h>
#include <cyg/memalloc/common.hxx>     // Common memory allocator infra

class Cyg_Mempool_Sepmeta_Implementation {
protected:
    // these constructors are explicitly disallowed
    Cyg_Mempool_Sepmeta_Implementation() {};
//    Cyg_Mempool_Sepmeta_Implementation( Cyg_Mempool_Sepmeta_Implementation &ref )
//    {};
    Cyg_Mempool_Sepmeta_Implementation &
    operator=( Cyg_Mempool_Sepmeta_Implementation &ref )
    { return ref; };

    struct memdq {
        struct memdq *prev, *next;       // prev/next alloced/free block
        struct memdq *memprev, *memnext; // prev/next block in memory
        cyg_uint8 *mem;           // memory address associated with this block
    };

    struct memdq allocedhead;   // list of alloced memory
    struct memdq freehead;      // list of free memory
    struct memdq memhead;       // initial block on free list
    struct memdq memend;        // dummy memdq indicating the end
                                // of memory, as if it were alloced
    struct memdq *freemetahead; // unused memdq's
    cyg_uint8  *obase;
    cyg_int32  osize;
    cyg_uint8  *metabase;
    cyg_int32  metasize;
    cyg_uint8  *bottom;
    cyg_uint8  *top;
    cyg_int32  alignment;
    cyg_int32  freemem;

    // round up addresses according to required alignment of pool
    cyg_uint8 *
    alignup( cyg_uint8 *addr );
            
    cyg_uint8 *
    aligndown( cyg_uint8 *addr );

    // round up addresses according to required alignment of metadata
    cyg_uint8 *
    alignmetaup( cyg_uint8 *addr );

    cyg_uint8 *
    alignmetadown( cyg_uint8 *addr );

    // return the alloced dq at mem
    struct memdq *
    find_alloced_dq( cyg_uint8 *mem );

    // returns a free dq of at least size, or NULL if none
    struct memdq *
    find_free_dq( cyg_int32 size );

    // returns the free dq following mem
    struct memdq *
    find_free_dq_slot( cyg_uint8 *mem );

    void
    insert_free_block( struct memdq *freedq );

    static void
    copy_data( cyg_uint8 *dst, cyg_uint8 *src, cyg_int32 nbytes );

    void
    check_free_memdq( struct memdq *dq );

    void
    check_alloced_memdq( struct memdq *dq );

public:
    // THIS is the public API of memory pools generally that can have the
    // kernel oriented thread-safe package layer atop.

    struct constructorargs {
        cyg_int32 alignment;
        cyg_uint8 *metabase;
        cyg_uint32 metasize;
        constructorargs(cyg_int32 align, cyg_uint8 *mbase, cyg_uint32 msize)
        {
            alignment = align; metabase = mbase; metasize = msize;
        }
    };

    // Constructor: gives the base and size of the arena in which memory is
    // to be carved out.
    Cyg_Mempool_Sepmeta_Implementation(
        cyg_uint8 *  /* base */,
        cyg_int32    /* size */,
        CYG_ADDRWORD /* constructorargs */ );

    // Destructor
    ~Cyg_Mempool_Sepmeta_Implementation();

    // get size bytes of memory
    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 */ );

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

    // 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 */ );
    
};

#include <cyg/memalloc/sepmetaimpl.inl>

// -------------------------------------------------------------------------
#endif // ifndef CYGONCE_MEMALLOC_SEPMETAIMPL_HXX
// EOF sepmetaimpl.hxx

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产麻豆精品| 久久色中文字幕| 色国产综合视频| 成人av集中营| 岛国精品在线播放| 国产精品一区二区不卡| 国产在线不卡一卡二卡三卡四卡| 日韩精品电影一区亚洲| 日本网站在线观看一区二区三区| 午夜久久电影网| 日精品一区二区| 视频一区国产视频| 日韩高清一级片| 久久99精品国产.久久久久久| 日本欧美加勒比视频| 久久激情综合网| 国产99久久久久久免费看农村| 国产一区二区三区电影在线观看 | av亚洲精华国产精华| 成人永久免费视频| jizzjizzjizz欧美| 欧美丝袜自拍制服另类| 91精品国产一区二区三区| 日韩亚洲国产中文字幕欧美| 精品99999| 国产精品美女一区二区| 亚洲激情图片一区| 天天亚洲美女在线视频| 九一九一国产精品| 成人精品一区二区三区四区| 91在线观看美女| 91精品国产91久久久久久一区二区 | 欧美午夜宅男影院| 91精品国产色综合久久不卡电影 | 免费高清在线一区| 国产成人亚洲综合色影视| 91老师国产黑色丝袜在线| 7777精品伊人久久久大香线蕉超级流畅| 日韩欧美成人激情| 国产精品美女久久久久高潮| 亚洲国产中文字幕| 国产麻豆成人精品| 91麻豆精品秘密| 欧美一区国产二区| 国产精品女上位| 午夜精品久久久久久久久| 国产露脸91国语对白| 欧美在线不卡一区| 欧美va在线播放| 亚洲精品欧美综合四区| 紧缚奴在线一区二区三区| 北条麻妃一区二区三区| 在线不卡的av| 国产精品另类一区| 日韩主播视频在线| www.欧美日韩| 欧美成人在线直播| 亚洲综合在线电影| 国产乱子轮精品视频| 欧美在线色视频| 久久精品亚洲乱码伦伦中文| 香蕉乱码成人久久天堂爱免费| 国产乱一区二区| 91精品国产日韩91久久久久久| 国产精品久久久久久久久果冻传媒 | 欧美电视剧免费全集观看| 一区在线播放视频| 久久国产三级精品| 欧美日韩亚洲综合| 中文字幕一区二区视频| 精彩视频一区二区三区| 欧美在线看片a免费观看| 欧美激情在线一区二区三区| 人禽交欧美网站| 色综合久久久久综合体| 国产日产欧美一区二区视频| 全国精品久久少妇| 欧美乱妇20p| 又紧又大又爽精品一区二区| 国产成人一区在线| 精品三级av在线| 免费观看日韩电影| 欧美日本国产一区| 亚洲一区在线看| 91网站视频在线观看| 国产欧美综合在线| 久久狠狠亚洲综合| 日韩三级免费观看| 青青国产91久久久久久| 欧美体内she精高潮| 夜夜操天天操亚洲| 色综合久久久久综合| 亚洲国产成人一区二区三区| 国产一区二区伦理| 欧美精品一区二区三区视频| 麻豆精品精品国产自在97香蕉| 欧美日韩一区二区三区免费看| 亚洲精品视频一区二区| 91一区一区三区| 亚洲三级在线看| 一本一道综合狠狠老| 国产精品对白交换视频| 99riav一区二区三区| 国产精品免费免费| 成人av动漫在线| 日韩理论片中文av| 色香蕉成人二区免费| 日韩毛片一二三区| 在线观看91视频| 亚洲国产精品尤物yw在线观看| 欧美色图免费看| 亚洲成av人片在线观看无码| 欧美日韩一二三| 美国毛片一区二区| 久久综合色婷婷| 国产麻豆精品95视频| 国产精品美日韩| 色狠狠桃花综合| 日韩国产精品91| 欧美成人猛片aaaaaaa| 经典三级一区二区| 中文字幕第一区| 欧美中文字幕一区二区三区 | 欧美色图第一页| 美洲天堂一区二卡三卡四卡视频| 日韩欧美亚洲一区二区| 国产精品99久久久久久有的能看| 日本一区二区动态图| 91精彩视频在线| 亚洲国产精品久久久男人的天堂| 91麻豆精品国产91久久久久久久久| 美女视频黄 久久| 国产欧美一区二区精品性色 | 欧美专区亚洲专区| 蜜桃视频一区二区三区在线观看| 国产亚洲制服色| 91麻豆国产精品久久| 日韩高清不卡一区二区三区| 精品99一区二区三区| 91亚洲午夜精品久久久久久| 首页国产欧美久久| 久久久久久久电影| 欧美综合欧美视频| 国产一区二区三区黄视频| 亚洲女性喷水在线观看一区| 91精品国产色综合久久| 成人福利电影精品一区二区在线观看| 亚洲图片欧美激情| 欧美一区二区三区视频在线 | 在线一区二区视频| 麻豆久久一区二区| 综合网在线视频| 精品免费一区二区三区| 91片在线免费观看| 久久精品国产99国产精品| 中文字幕一区二区三区不卡在线 | 日韩天堂在线观看| 99久久精品免费看国产免费软件| 三级亚洲高清视频| 国产精品久久久久久久久免费樱桃 | 亚洲午夜在线观看视频在线| 亚洲精品一区二区三区影院| 色欧美乱欧美15图片| 国内精品国产成人| 一区二区三区四区蜜桃| 久久久五月婷婷| 欧美肥妇bbw| 日本道精品一区二区三区| 国产一区二区三区在线观看免费 | 久久老女人爱爱| 欧美视频一区二区三区在线观看| 美腿丝袜亚洲色图| 一区二区三区国产| 欧美韩国日本一区| 欧美电视剧免费观看| 欧美性videosxxxxx| 99久久久精品| 国产一区二区调教| 免费在线观看视频一区| 亚洲黄色小说网站| 国产精品系列在线| 精品国产青草久久久久福利| 在线成人午夜影院| 在线观看视频一区| 91丝袜美女网| www.66久久| 大尺度一区二区| 国产成人av自拍| 激情久久五月天| 免费成人在线网站| 香蕉久久一区二区不卡无毒影院| 悠悠色在线精品| 中文字幕在线不卡| 久久精品欧美一区二区三区不卡| 精品国一区二区三区| 91精品黄色片免费大全| 欧美日韩成人在线| 欧美猛男gaygay网站| 欧美色综合网站| 欧美日韩高清一区|