66 THeapCounterAllocator;
68THeapCounterAllocator& heapCounterAllocator()
75DefaultCounter::TAtomicCount* DefaultCounter::initHeapCounter(TCount initialValue)
77 void* p = heapCounterAllocator().allocate();
78 return new (p) TAtomicCount(initialValue);
81void DefaultCounter::disposeHeapCounter(TAtomicCount* counter)
83 counter->~TAtomicCount();
84 heapCounterAllocator().deallocate(counter);
A fixed-size lock-free free-list allocator.
static TInstance * instance()
Return pointer to singleton instance.
general utility, debug facilities, ...
Library for Assembled Shared Sources.