Files
XCEngine/docs/api/threading/task-system-config/steal-tasks.md
ssdfasd d34d040563 Fix broken links in Threading API docs
Fix 14 broken cross-references in docs/api/threading/:
- lambda-task path: lambdatask -> lambda-task (5 occurrences)
- task-system-config path: tasksystemconfig -> task-system-config (6 occurrences)
- read-write-lock self-ref: readwritelock -> read-write-lock (6 occurrences)
- task-system cross-method: createtaskgroup/destroytaskgroup -> create-task-group/destroy-task-group
- thread cross-method: getcurrentid/getid -> get-current-id/get-id

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 01:30:37 +08:00

642 B

TaskSystemConfig::stealTasks

bool stealTasks = true

是否启用工作窃取。当启用时,空闲的工作线程可以从其他繁忙线程的任务队列中窃取任务,提高整体吞吐率。

类型: bool

默认值: true

当前状态: 此配置项当前未实际实现,工作窃取功能不可用。所有工作线程仅从全局任务队列获取任务。

示例:

TaskSystemConfig config;
config.workerThreadCount = 8;
config.stealTasks = true; // 预留配置项(当前未实现)

相关文档