rewrite of rxx_allocator.h
authorFloris Ruijter <flo.ruijt@hotmail.com>
Fri, 4 Mar 2011 16:25:50 +0000 (17:25 +0100)
committerFloris Ruijter <flo.ruijt@hotmail.com>
Tue, 5 Jul 2011 23:14:39 +0000 (01:14 +0200)
commit5eee5f966bb14b83f8132a23b8f8ff613f4a60cf
treef09b0582a8a1254461facf75036844ca9b75ccf0
parent6035cf16494f59e73ec423377b0ea590c69387d5
rewrite of rxx_allocator.h

-use a global linked list of free blocks
-use a QMutex to make it threadsafe
*testing indicates QMutex is faster than QThreadStorage
-zero on demand
-to check that the allocator doesn't keep too much blocks to itself
define DEBUG_CHAIN_LENGTH, it's undefined by default
languages/cpp/parser/rxx_allocator.h