windows-nt/Source/XPSP1/NT/ds/security/passport/include/fastheap.hpp

65 lines
2.7 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef _FAST_HEAP_HPP_
#define _FAST_HEAP_HPP_
// Ruler
// 1 2 3 4 5 6 7 8
//345678901234567890123456789012345678901234567890123456789012345678901234567890
/********************************************************************/
/* */
/* The standard layout. */
/* */
/* The standard layout for 'hpp' files for this code is as */
/* follows: */
/* */
/* 1. Include files. */
/* 2. Constants exported from the class. */
/* 3. Data structures exported from the class. */
/* 4. Forward references to other data structures. */
/* 5. Class specifications (including inline functions). */
/* 6. Additional large inline functions. */
/* */
/* Any portion that is not required is simply omitted. */
/* */
/********************************************************************/
#include "Rockall.hpp"
/********************************************************************/
/* */
/* A fast heap. */
/* */
/* A fast heap tries to provide very good performance even */
/* if that comes at a significant cost in terms of additional */
/* memory usage. */
/* */
/********************************************************************/
class ROCKALL_LINKAGE FAST_HEAP : public ROCKALL
{
public:
//
// Public functions.
//
FAST_HEAP
(
int MaxFreeSpace = 4194304,
bool Recycle = true,
bool SingleImage = false,
bool ThreadSafe = true
);
~FAST_HEAP( void );
private:
//
// Disabled operations.
//
// All copy constructors and class assignment
// operations are disabled.
//
FAST_HEAP( const FAST_HEAP & Copy );
void operator=( const FAST_HEAP & Copy );
};
#endif