Esempio n. 1
0
    StatsTable::~StatsTable()
    {
        // Before we tear down our copy of the table, be sure to
        // unregister our thread.
        UnregisterThread();

        // Return ThreadLocalStorage.  At this point, if any registered threads
        // still exist, they cannot Unregister.
        tls_index_.Free();

        // Cleanup our shared memory.
        delete impl_;

        // If we are the global table, unregister ourselves.
        if(global_table_ == this)
        {
            global_table_ = NULL;
        }
    }
Esempio n. 2
0
CBotThread::~CBotThread()
{
	UnregisterThread();
}
Esempio n. 3
0
 void StatsTable::UnregisterThread()
 {
     UnregisterThread(GetTLSData());
 }