Files
XCSDD/docs/api/threading/task-system/shutdown.md
ssdfasd 58a83f445a 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
2026-03-19 12:44:08 +08:00

637 B

TaskSystem::Shutdown

void Shutdown()

关闭任务系统,停止所有工作线程并清理资源。

参数:

返回:

复杂度: O(n)

注意:

  • 调用后应等待所有提交的任务执行完毕,或确保不再需要未完成的任务。
  • 关闭后不可再次使用,必须重新 Initialize。

示例:

TaskSystem::Get().Initialize(config);

// ... 使用任务系统 ...

TaskSystem::Get().Shutdown();
printf("TaskSystem stopped\n");

相关文档