Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 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 >
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 
27 {
28  StringPool stringPool;
29 };
30 
32