ALib C++ Framework
by
Library Version: 2605 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
monomem.cpp
1
2namespace alib {
3/// This \alibmod implements the concept of <em>"monotonic allocation"</em> by providing the central
4/// classes #"TMonoAllocator" and #"TPoolAllocator".
5///
6/// Please consult #"alib_mods_contmono;ALib Module Memory - Programmer's Manual"
7/// for further information.
8namespace monomem {
9#if !DOXYGEN
11# if !ALIB_SINGLE_THREADED
13# endif
14#endif
15}}
16
17
18#if !DOXYGEN
19DOX_MARKER( [ALIB_MANUAL_T_HPP_FILE_USAGE] )
20//##################################################################################################
21// Instantiation of MonoAllocator, which is TMonoAllocator<lang::HeapAllocator>.
22//##################################################################################################
23#include "alib/monomem/monoallocator.t.hpp"
24
26DOX_MARKER( [ALIB_MANUAL_T_HPP_FILE_USAGE] )
27
28#endif // !DOXYGEN
29
30
31#if !DOXYGEN
32// Including the definition of the non-inlined methods of TPoolAllocator.
33// After that, the two predefined versions are explicitly instantiated.
35
36namespace alib::monomem {
37
38template ALIB_DLL class TPoolAllocator<lang::HeapAllocator, ALIB_MONOMEM_POOLALLOCATOR_DEFAULT_ALIGNMENT>;
39template ALIB_DLL class TPoolAllocator< MonoAllocator, ALIB_MONOMEM_POOLALLOCATOR_DEFAULT_ALIGNMENT>;
40
41} // namespace [alib::monomem]
42
43#endif // !DOXYGEN
#define ALIB_DLL
#define ALIB_DBG(...)
RecursiveLock GLOBAL_ALLOCATOR_LOCK
TMonoAllocator< lang::HeapAllocator > GLOBAL_ALLOCATOR
Definition alox.cpp:14
threads::RecursiveLock RecursiveLock
Type alias in namespace #"%alib".