18 #ifndef HL_LOCKEDHEAP_H 19 #define HL_LOCKEDHEAP_H 26 template <
class LockType,
class Super>
33 std::lock_guard<LockType> l (
thelock);
34 return Super::malloc (sz);
37 inline void free (
void * ptr) {
38 std::lock_guard<LockType> l (
thelock);
42 inline size_t getSize (
void * ptr)
const {
43 std::lock_guard<LockType> l (
thelock);
44 return Super::getSize (ptr);
48 std::lock_guard<LockType> l (
thelock);
49 return Super::getSize (ptr);
size_t getSize(void *ptr) const
size_t getSize(void *ptr)