Nebula
Loading...
Searching...
No Matches
localstringatomtable.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
14#include "core/singleton.h"
15
16//------------------------------------------------------------------------------
17namespace Util
18{
20{
22public:
27
28private:
29 friend class StringAtom;
30
32 void Add(const char* str);
33};
34
35} // namespace Util
36//------------------------------------------------------------------------------
Implements a thread-local string atom table which is used as a cache to prevent excessive locking whe...
Definition localstringatomtable.h:20
~LocalStringAtomTable()
destructor
Definition localstringatomtable.cc:24
LocalStringAtomTable()
constructor
Definition localstringatomtable.cc:16
__DeclareSingleton(LocalStringAtomTable)
void Add(const char *str)
add a string pointer to the atom table
Definition localstringatomtable.cc:35
A StringAtom.
Definition stringatom.h:22
This implements the base class for thread-local and global string atom table classes.
Definition stringatomtablebase.h:34
A pinned array is an array which manages its own virtual memory.
Definition String.cs:6