MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / allocate

Method allocate

deps/physx/physx/source/foundation/src/PsAllocator.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void* 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
103void NamedAllocator::deallocate(void* ptr)
104{

Callers 2

createInstanceMethod · 0.45

Calls 2

getMutexFunction · 0.50
findMethod · 0.45

Tested by

no test coverage detected