diff options
Diffstat (limited to 'Source/ThirdParty/ANGLE/src/compiler/PoolAlloc.h')
-rw-r--r-- | Source/ThirdParty/ANGLE/src/compiler/PoolAlloc.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/ThirdParty/ANGLE/src/compiler/PoolAlloc.h b/Source/ThirdParty/ANGLE/src/compiler/PoolAlloc.h index 645db78..051dc00 100644 --- a/Source/ThirdParty/ANGLE/src/compiler/PoolAlloc.h +++ b/Source/ThirdParty/ANGLE/src/compiler/PoolAlloc.h @@ -115,7 +115,7 @@ private: // class TPoolAllocator { public: - TPoolAllocator(bool global = false, int growthIncrement = 8*1024, int allocationAlignment = 16); + TPoolAllocator(int growthIncrement = 8*1024, int allocationAlignment = 16); // // Don't call the destructor just to free up the memory, call pop() @@ -194,7 +194,6 @@ protected: return TAllocation::offsetAllocation(memory); } - bool global; // should be true if this object is globally scoped size_t pageSize; // granularity of allocation from the OS size_t alignment; // all returned allocations will be aligned at // this granularity, which will be a power of 2 @@ -220,18 +219,15 @@ private: // different times. But a simple use is to have a global pop // with everyone using the same global allocator. // -typedef TPoolAllocator* PoolAllocatorPointer; extern TPoolAllocator& GetGlobalPoolAllocator(); +extern void SetGlobalPoolAllocator(TPoolAllocator* poolAllocator); #define GlobalPoolAllocator GetGlobalPoolAllocator() - struct TThreadGlobalPools { TPoolAllocator* globalPoolAllocator; }; -void SetGlobalPoolAllocatorPtr(TPoolAllocator* poolAllocator); - // // This STL compatible allocator is intended to be used as the allocator // parameter to templatized STL containers, like vector and map. @@ -301,4 +297,4 @@ protected: TPoolAllocator& allocator; }; -#endif // _POOLALLOC_INCLUDED_ +#endif // _POOLALLOC_INCLUDED_
\ No newline at end of file |