fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
This commit is contained in:
32
docs/api/threading/task-system/destroytaskgroup.md
Normal file
32
docs/api/threading/task-system/destroytaskgroup.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# TaskSystem::DestroyTaskGroup
|
||||
|
||||
```cpp
|
||||
void DestroyTaskGroup(TaskGroup* group)
|
||||
```
|
||||
|
||||
销毁一个任务组并释放其资源。
|
||||
|
||||
**参数:**
|
||||
- `group` - 要销毁的任务组指针
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**注意:**
|
||||
- 销毁时如果还有未完成的任务,这些任务将被取消。
|
||||
- 传入 nullptr 无效果。
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
TaskGroup* group = TaskSystem::Get().CreateTaskGroup();
|
||||
// ... 添加任务 ...
|
||||
|
||||
TaskSystem::Get().DestroyTaskGroup(group);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [TaskSystem 总览](task-system.md) - 返回类总览
|
||||
- [CreateTaskGroup](createtaskgroup.md) - 创建任务组
|
||||
Reference in New Issue
Block a user