1 // 2 // Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 7 #include "compiler/translator/Cache.h" 8 #include "compiler/translator/InitializeDll.h" 9 #include "compiler/translator/InitializeGlobals.h" 10 11 #include "common/platform.h" 12 13 #include <assert.h> 14 15 namespace sh 16 { 17 InitProcess()18bool InitProcess() 19 { 20 if (!InitializePoolIndex()) 21 { 22 assert(0 && "InitProcess(): Failed to initalize global pool"); 23 return false; 24 } 25 26 TCache::initialize(); 27 28 return true; 29 } 30 DetachProcess()31void DetachProcess() 32 { 33 FreePoolIndex(); 34 TCache::destroy(); 35 } 36 37 } // namespace sh 38