This website requires JavaScript.
Explore
Help
Register
Sign In
xuanchi
/
XCEngine
Watch
1
Star
1
Fork
0
You've already forked XCEngine
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
727b6ca249a081e5b310b3e9ab1ae686a0ff568f
XCEngine
/
docs
/
api
/
XCEngine
/
Threading
/
Task
/
Release.md
ssdfasd
8f486611d5
docs: rebuild Threading API content
2026-03-26 20:59:59 +08:00
516 B
Raw
Blame
History
ITask::Release
释放一次任务对象引用。
void
Release
();
行为说明
当前头文件内联实现会:
执行
m_refCount.fetch_sub(1)
如果旧值正好是
1
,则执行
delete this
返回值
无。
注意事项
这是一套侵入式引用计数协议,默认假设对象是
new
出来的。
如果对栈对象调用
Release()
并走到
delete this
,会产生未定义行为。
相关文档
返回类型总览
AddRef
Reference in New Issue
View Git Blame
Copy Permalink