Example #1
0
bool DetachProcess()
{
    bool success = true;

    if (ThreadInitializeIndex == OS_INVALID_TLS_INDEX)
        return true;

    ShFinalize();

    success = DetachThread();

	FreePoolIndex();

    OS_FreeTLSIndex(ThreadInitializeIndex);
    ThreadInitializeIndex = OS_INVALID_TLS_INDEX;

    return success;
}
Example #2
0
void C_DECL Hlsl2Glsl_Shutdown()
{
	if (s_ThreadInitialized == OS_INVALID_TLS_INDEX)
		return;
	
	if (PerProcessGPA)
	{
		SymbolTables[EShLangVertex].pop();
		SymbolTables[EShLangFragment].pop();
		
		PerProcessGPA->popAll();
		delete PerProcessGPA;
		PerProcessGPA = NULL;
	}
	
	DetachThread();
	
	FreePoolIndex();
	FreeParseContextIndex();
	
	OS_FreeTLSIndex(s_ThreadInitialized);
	s_ThreadInitialized = OS_INVALID_TLS_INDEX;
}
Example #3
0
void DetachProcess()
{
    FreePoolIndex();
    TCache::destroy();
}
Example #4
0
void DetachProcess()
{
    FreeParseContextIndex();
    FreePoolIndex();
}