8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-27 20:03:03 +01:00
firebird-mirror/src/jrd/all.h
2001-12-28 05:16:31 +00:00

67 lines
1.8 KiB
C++

/*
* PROGRAM: JRD Access Method
* MODULE: all.h
* DESCRIPTION: Block allocator blocks
*
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy
* of the License at http://www.Inprise.com/IPL.html
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
* or implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code was created by Inprise Corporation
* and its predecessors. Portions created by Inprise Corporation are
* Copyright (C) Inprise Corporation.
*
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
#ifndef JRD_ALL_H
#define JRD_ALL_H
#include "../jrd/jrd.h"
#include "../common/memory/allocators.h"
#include "../jrd/block_cache.h"
#include "../jrd/lls.h"
TEXT* ALL_cstring(TEXT* in_string);
void ALL_fini(void);
void ALL_init(void);
//void ALL_push(BLK , LLS *);
//BLK ALL_pop(LLS *);
void ALL_print_memory_pool_info(IB_FILE*, class dbb*);
#ifdef DEV_BUILD
void ALL_check_memory(void);
#endif
class JrdMemoryPool : public MemoryPool
{
public:
JrdMemoryPool(int extSize = 0, MemoryPool* p = getDefaultMemoryPool())
: MemoryPool(extSize, p),
plb_buckets(0),
plb_segments(0),
plb_dccs(0),
lls_cache(*this)
{
}
static class blk* ALL_pop(class lls**);
static void ALL_push(class blk*, class lls**);
struct sbm* plb_buckets; /* available bit map buckets */
struct bms* plb_segments; /* available bit map segments */
struct Dcc* plb_dccs;
private:
BlockCache<lls> lls_cache; /* Was plb_lls */
};
#endif // JRD_ALL_H