FileAllocator* FileAllocator::get() {
if (!_instance)
_instance = new FileAllocator();
return _instance;
}
_instance must protect by mutex , or directly assign by new FileAllocator.
- links to
FileAllocator* FileAllocator::get() {
if (!_instance)
_instance = new FileAllocator();
return _instance;
}
_instance must protect by mutex , or directly assign by new FileAllocator.