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>
25 lines
569 B
Markdown
25 lines
569 B
Markdown
# TaskSystemConfig::maxTaskQueueSize
|
|
|
|
```cpp
|
|
uint32_t maxTaskQueueSize = 1024
|
|
```
|
|
|
|
任务队列的最大容量。当队列满时,新提交的任务将阻塞直到有空间。
|
|
|
|
**类型:** `uint32_t`
|
|
|
|
**默认值:** `1024`
|
|
|
|
**当前状态:** 此配置项当前未实际强制限制,任务队列可以无限增长(受系统内存限制)。
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
TaskSystemConfig config;
|
|
config.maxTaskQueueSize = 4096; // 预留配置项(当前未强制限制)
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [TaskSystemConfig 总览](task-system-config.md) - 返回类总览
|