add static so multiple files can each have their own Pool()

This commit is contained in:
Jonathan Gray 2013-04-23 20:32:41 +10:00
parent d13e72ab9d
commit 9e50610608
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ struct SOpenFile
};
typedef ratl::handle_pool_vs<SOpenFile, MAX_OPEN_FILES> TFilePool;
TFilePool& Pool()
static TFilePool& Pool()
{
static TFilePool TFP;
return TFP;

View File

@ -43,7 +43,7 @@
typedef ratl::hash_pool<BLOCK_SIZE, MAX_HASH> TStrPool;
TStrPool& Pool()
static TStrPool& Pool()
{
static TStrPool TSP;
return TSP;