mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-24 20:34:29 +08:00
Merge pull request #94 from GeWuYou/refactor/pool-simplify-warning-messages
refactor(pool): 简化对象池释放警告消息
This commit is contained in:
commit
1f0eb55288
@ -73,8 +73,7 @@ public abstract class AbstractObjectPoolSystem<TKey, TObject>
|
|||||||
{
|
{
|
||||||
// 记录警告:检测到可能的双重释放或错误释放
|
// 记录警告:检测到可能的双重释放或错误释放
|
||||||
Debug.WriteLine(
|
Debug.WriteLine(
|
||||||
$"[ObjectPool] Warning: Attempting to release object for key '{key}' " +
|
$"[ObjectPool] Warning: Release called with key '{key}', but ActiveCount is already 0. Possible double release.");
|
||||||
$"but ActiveCount is already 0. Possible double-release or incorrect key.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查容量限制
|
// 检查容量限制
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user