- 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
34 lines
637 B
Markdown
34 lines
637 B
Markdown
# TaskSystem::Shutdown
|
|
|
|
```cpp
|
|
void Shutdown()
|
|
```
|
|
|
|
关闭任务系统,停止所有工作线程并清理资源。
|
|
|
|
**参数:** 无
|
|
|
|
**返回:** 无
|
|
|
|
**复杂度:** O(n)
|
|
|
|
**注意:**
|
|
- 调用后应等待所有提交的任务执行完毕,或确保不再需要未完成的任务。
|
|
- 关闭后不可再次使用,必须重新 Initialize。
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
TaskSystem::Get().Initialize(config);
|
|
|
|
// ... 使用任务系统 ...
|
|
|
|
TaskSystem::Get().Shutdown();
|
|
printf("TaskSystem stopped\n");
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [TaskSystem 总览](task-system.md) - 返回类总览
|
|
- [Initialize](initialize.md) - 初始化任务系统
|