/usr/include/falcon/detmempool.h is in falconpl-dev 0.9.6.9-git20120606-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | /*
FALCON - The Falcon Programming Language.
FILE: detmempool.h
Deterministic memory pool
-------------------------------------------------------------------
Author: Giancarlo Niccolai
Begin: dom gen 28 2007
-------------------------------------------------------------------
(C) Copyright 2004: the FALCON developers (see list in AUTHORS file)
See LICENSE file for licensing details.
*/
/** \file
Deterministic memory pool declaration.
*/
#ifndef flc_detmempool_H
#define flc_detmempool_H
#include <falcon/setup.h>
#include <falcon/mempool.h>
namespace Falcon {
/** Deterministic Memory Pool.
This class works exactly as a basic memory pool, with the exception
that if a garbage collection loop does not terminate by a certain
time, the loop is interrupted.
This may result in none of the garbage to be reclaimed; so the applications
usign this memory pool must at times disable the collection timeout,
or set it to a sufficently wide interval, so that a full collection may
take place. However, the application stays in control of the garbage
collection process.
Sophisticated applications may derive this class to provide automatic
timing strategies that would turn temporarily off the timeout when
allocated memory becomes too huge.
*/
class DetMemPool: public MemPool
{
uint32 m_msTarget;
bool gcDetMark();
void gcDetSweep();
public:
DetMemPool() {}
virtual bool performGC( bool bForceReclaim = false );
};
}
#endif
/* end of detmempool.h */
|