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

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

?? dlmallocimpl.hxx

?? ecos下的gui開發源代碼
?? HXX
字號:
#ifndef CYGONCE_MEMALLOC_DLMALLOCIMPL_HXX
#define CYGONCE_MEMALLOC_DLMALLOCIMPL_HXX

//==========================================================================
//
//      dlmallocimpl.hxx
//
//      Interface to the port of Doug Lea's malloc implementation
//
//==========================================================================
//####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-06-18
// Purpose:      Define standard interface to Doug Lea's malloc implementation
// Description:  Doug Lea's malloc has been ported to eCos. This file provides
//               the interface between the implementation and the standard
//               memory allocator interface required by eCos
// Usage:        #include <cyg/memalloc/dlmalloc.hxx>
//              
//
//####DESCRIPTIONEND####
//
//==========================================================================

// CONFIGURATION

#include <pkgconf/memalloc.h>

// INCLUDES

#include <stddef.h>                    // size_t, ptrdiff_t
#include <cyg/infra/cyg_type.h>        // types

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

// As a special case, override CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_SAFE_MULTIPLE
// if the malloc config says so
#ifdef CYGIMP_MEMALLOC_MALLOC_DLMALLOC
// forward declaration to prevent header dependency problems
class Cyg_Mempool_dlmalloc;
# include <pkgconf/heaps.hxx>
# if (CYGMEM_HEAP_COUNT > 1) && \
     !defined(CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_SAFE_MULTIPLE)
#  define CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_SAFE_MULTIPLE 1
# endif
#endif

// CONSTANTS

// number of bins - but changing this alone will not change the number of
// bins!
#define CYGPRI_MEMALLOC_ALLOCATOR_DLMALLOC_NAV 128

// TYPE DEFINITIONS


class Cyg_Mempool_dlmalloc_Implementation
{
public:
    /* cyg_dlmalloc_size_t is the word-size used for internal bookkeeping
       of chunk sizes. On a 64-bit machine, you can reduce malloc
       overhead, especially for very small chunks, by defining
       cyg_dlmalloc_size_t to be a 32-bit type at the expense of not
       being able to handle requests greater than 2^31. This limitation is
       hardly ever a concern; you are encouraged to set this. However, the
       default version is the same as size_t. */

    typedef size_t Cyg_dlmalloc_size_t;
    
    typedef struct malloc_chunk
    {
        Cyg_dlmalloc_size_t prev_size; /* Size of previous chunk (if free). */
        Cyg_dlmalloc_size_t size;      /* Size in bytes, including overhead. */
        struct malloc_chunk* fd;   /* double links -- used only if free. */
        struct malloc_chunk* bk;
    };
    
protected:
    /* The first value returned from sbrk */
    cyg_uint8 *arenabase;

    /* The total memory in the pool */
    cyg_int32 arenasize;

#ifdef CYGIMP_MEMALLOC_ALLOCATOR_DLMALLOC_SAFE_MULTIPLE
    struct Cyg_Mempool_dlmalloc_Implementation::malloc_chunk *
    av_[ CYGPRI_MEMALLOC_ALLOCATOR_DLMALLOC_NAV * 2 + 2 ];
#endif

#ifdef CYGDBG_MEMALLOC_ALLOCATOR_DLMALLOC_DEBUG

    void
    do_check_chunk( struct malloc_chunk * );

    void
    do_check_free_chunk( struct malloc_chunk * );
    
    void
    do_check_inuse_chunk( struct malloc_chunk * );

    void
    do_check_malloced_chunk( struct malloc_chunk *, Cyg_dlmalloc_size_t );
#endif
    
public:
    // 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_dlmalloc_Implementation( cyg_uint8 *  /* base */,
                                         cyg_int32    /* size */,
                                         CYG_ADDRWORD /* argthru */ );

    // Destructor
    ~Cyg_Mempool_dlmalloc_Implementation() {}

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

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

};

#endif // ifndef CYGONCE_MEMALLOC_DLMALLOCIMPL_HXX
// EOF dlmallocimpl.hxx

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文av一区二区| 91精品国产综合久久久久久久 | 成人午夜看片网址| 国产三级一区二区| 成人国产电影网| 亚洲色图制服丝袜| 91福利在线观看| 亚洲国产精品一区二区www在线| 欧美巨大另类极品videosbest| 日韩电影在线免费| xnxx国产精品| 99久久精品一区二区| 亚洲成人激情自拍| 欧美成人福利视频| 国产精品一品视频| 亚洲精品你懂的| 精品国产区一区| 波多野结衣视频一区| 亚洲一区二区三区四区不卡| 欧美一卡在线观看| 成人亚洲精品久久久久软件| 一区2区3区在线看| 精品日韩成人av| 一本大道久久精品懂色aⅴ| 日日夜夜精品视频天天综合网| 久久亚洲综合av| 色综合av在线| 国产精品综合一区二区| 一区二区三区国产豹纹内裤在线| 91精品国产高清一区二区三区| 国产成人精品免费看| 亚洲午夜免费电影| 久久久影院官网| 欧美性猛交xxxx乱大交退制版 | 中文成人综合网| 欧美人与z0zoxxxx视频| 成人一区二区三区中文字幕| 亚洲成人免费在线| 国产精品成人一区二区艾草 | 在线看不卡av| 国产一区二区三区高清播放| 亚洲激情图片qvod| 国产亚洲欧美激情| 欧美一区国产二区| 91国偷自产一区二区使用方法| 国产乱国产乱300精品| 日本伊人色综合网| 亚洲柠檬福利资源导航| 久久久久久久久久久久电影| 欧美猛男男办公室激情| 91免费在线播放| 国产精品一区二区免费不卡| 日日摸夜夜添夜夜添国产精品| 亚洲欧洲日韩综合一区二区| 日韩精品在线一区| 欧美精品日韩综合在线| 91久久一区二区| av资源站一区| 丁香婷婷综合激情五月色| 麻豆专区一区二区三区四区五区| 亚洲国产一区二区三区| 亚洲另类在线一区| 136国产福利精品导航| 国产精品毛片大码女人| 久久久久一区二区三区四区| 欧美成人vr18sexvr| 日韩欧美色电影| 欧美一级国产精品| 91精品国产一区二区三区蜜臀| 欧美色图天堂网| 色婷婷综合久久| 欧美亚洲另类激情小说| 欧美伊人久久大香线蕉综合69| 色综合夜色一区| 91美女蜜桃在线| 国产精品白丝jk黑袜喷水| 国产一区二区电影| 国产乱子伦视频一区二区三区| 国产一区二区精品久久| 国产成人免费视| 99久久婷婷国产综合精品电影| 国产激情一区二区三区四区| 丁香桃色午夜亚洲一区二区三区| 国产成人综合网| 波多野结衣在线aⅴ中文字幕不卡| 国产91精品一区二区麻豆网站| 国产不卡视频一区| bt欧美亚洲午夜电影天堂| 97se亚洲国产综合自在线| 在线观看一区二区精品视频| 欧美日韩另类一区| 欧美大片顶级少妇| 中文字幕巨乱亚洲| 曰韩精品一区二区| 五月激情六月综合| 国产一区视频导航| 成人av动漫网站| 欧美性猛片aaaaaaa做受| 日韩一区二区视频在线观看| 久久综合成人精品亚洲另类欧美| 欧美韩国日本综合| 一区2区3区在线看| 激情国产一区二区| 成人视屏免费看| 在线精品亚洲一区二区不卡| 日韩一级片在线观看| 欧美一级高清片在线观看| 精品国产1区二区| 这里是久久伊人| 久久久一区二区三区| 最好看的中文字幕久久| 日本怡春院一区二区| 成人精品亚洲人成在线| 欧美性猛交xxxx黑人交| 精品国产sm最大网站| 亚洲精品视频在线观看网站| 日本亚洲三级在线| 成人禁用看黄a在线| 欧美日韩美女一区二区| 亚洲国产精品黑人久久久| 伊人色综合久久天天人手人婷| 久久99精品一区二区三区三区| 日韩欧美视频一区| 亚洲色图欧美在线| 精品一区二区三区久久| 日本伦理一区二区| 亚洲国产成人在线| 蜜臀av性久久久久蜜臀aⅴ四虎| 成人精品小蝌蚪| 欧美成人女星排行榜| 亚洲一区在线免费观看| 国产精品1区2区| 欧美一区二区三级| 亚洲午夜在线观看视频在线| 国产一区999| 这里只有精品免费| 亚洲午夜一区二区三区| 成人app在线观看| 亚洲精品一线二线三线无人区| 亚洲一区二区偷拍精品| 懂色av中文字幕一区二区三区| 91精品国产欧美一区二区18| 一区二区三区在线免费| 成人综合婷婷国产精品久久蜜臀 | 6080国产精品一区二区| 中文字幕在线免费不卡| 精品在线一区二区三区| 欧美一级欧美三级在线观看| 亚洲精品videosex极品| 91一区二区在线| 国产精品污污网站在线观看| 国产一区三区三区| 2023国产精品自拍| 蜜臀久久99精品久久久久久9| 欧美日韩和欧美的一区二区| 亚洲精品欧美专区| 91蝌蚪porny| 亚洲免费观看高清| 色婷婷狠狠综合| 亚洲激情成人在线| 91国偷自产一区二区开放时间 | 偷窥少妇高潮呻吟av久久免费| 99精品在线观看视频| 国产精品久久久久久户外露出| 国产成人精品影视| 久久久99精品免费观看| 紧缚奴在线一区二区三区| 日韩视频永久免费| 久久国产精品色婷婷| 日韩免费性生活视频播放| 久久99这里只有精品| 日韩精品一区二区三区老鸭窝| 蜜桃精品视频在线观看| 日韩免费高清av| 国产一区二区精品久久| 日本一区二区三区国色天香| 成人国产精品免费观看动漫| 国产精品国产三级国产普通话99 | 国产一区二区影院| 久久久久久**毛片大全| 国产+成+人+亚洲欧洲自线| 中文字幕第一区| 色综合久久天天| 午夜欧美一区二区三区在线播放| 欧美三级在线看| 日本不卡一区二区| 久久欧美中文字幕| 成人精品小蝌蚪| 亚洲成人黄色小说| 日韩免费电影网站| voyeur盗摄精品| 亚洲大型综合色站| 欧美大黄免费观看| www.色综合.com| 日日摸夜夜添夜夜添精品视频| 久久香蕉国产线看观看99| 99视频精品在线| 五月激情综合网| 日本一区二区视频在线观看| 欧美性色欧美a在线播放|