Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SharedPool.cpp
Go to the documentation of this file.
1
#include "
SharedPool.h
"
2
#include <string>
3
4
template
<
typename
T,
typename
RT >
5
SharedPool< T, RT >
*
SharedPool< T, RT >::ms_singleton
= 0;
6
7
template
<
typename
T,
typename
RT >
SharedPool< T, RT >::SharedPool
()
8
#ifdef __GLIBC__
9
: referenceCounter(
10
#
if
defined (_WIN32) || __GNUC__ != 2
11
RT::min_buckets
12
#endif
13
)
14
#endif
15
{
16
if
(ms_singleton == 0)
17
ms_singleton =
this
;
18
}
19
20
template
<
typename
T,
typename
RT >
SharedPool< T, RT >::~SharedPool
()
21
{
22
if
(ms_singleton ==
this
)
23
ms_singleton = 0;
24
}
25
26
class
SharedPoolInitializer
27
{
28
StringPool
stringPool;
29
};
30
31
static
SharedPoolInitializer
sharedPoolInitializer
;
32
src
SharedPool.cpp
Generated on Fri May 29 2015 23:07:38 for Vegastrike 0.5.1 rc1 by
1.8.4