| 91 | } |
| 92 | |
| 93 | void* NamedAllocator::allocate(size_t size, const char* filename, int line) |
| 94 | { |
| 95 | if(!size) |
| 96 | return 0; |
| 97 | Foundation::Mutex::ScopedLock lock(getMutex()); |
| 98 | const AllocNameMap::Entry* e = getMap().find(this); |
| 99 | PX_ASSERT(e); |
| 100 | return getAllocator().allocate(size, e->second, filename, line); |
| 101 | } |
| 102 | |
| 103 | void NamedAllocator::deallocate(void* ptr) |
| 104 | { |
no test coverage detected