docs: update memory and threading API docs
This commit is contained in:
@@ -30,9 +30,9 @@ public:
|
||||
|
||||
void Free(void* ptr) override {
|
||||
if (ptr) {
|
||||
size_t size = 256; // 需要外部记录
|
||||
// size 需要分配器内部记录或通过其他机制获取
|
||||
::operator delete(ptr);
|
||||
m_current -= size;
|
||||
m_current -= 256; // 示例中硬编码
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user