threading/: - Rename 19 camelCase method files to hyphenated names - task-system: createtaskgroup→create-task-group, etc. - tasksystemconfig: enabletaskprofiling→enable-task-profiling, etc. - thread: getcurrentid→get-current-id, etc. - task: addref→add-ref, getid→get-id, etc. math/: - Rename underscore operator files to hyphenated - vector3: operator_add→operator-add, etc. - matrix4: gettranslation→get-translation, etc. - vector4: tovector3→to-vector3, constructor_vector3→constructor-vector3 - sphere: sphere_constructor→sphere-constructor, etc. memory/: - Remove duplicate memorymanager/ folder (kept manager/ which was correct) core/: - filewriter: Consolidate ctor-default.md and ctor-file.md into constructor.md - Rename dtor.md→destructor.md debug/: - filelogsink: Rename construct.md→constructor.md, ~filelogsink.md→destructor.md All overview pages updated with new file references.
29 lines
667 B
Markdown
29 lines
667 B
Markdown
# TaskSystemConfig::threadStackSize
|
|
|
|
```cpp
|
|
uint32_t threadStackSize = 0
|
|
```
|
|
|
|
工作线程的栈大小(字节)。值为 0 时使用系统默认值。
|
|
|
|
**类型:** `uint32_t`
|
|
|
|
**默认值:** `0`(使用系统默认)
|
|
|
|
**当前状态:** 此配置项当前未实际使用,工作线程始终使用系统默认栈大小。
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
TaskSystemConfig config;
|
|
config.workerThreadCount = 4;
|
|
config.threadStackSize = 1024 * 1024; // 预留配置项(当前未实现)
|
|
|
|
TaskSystemConfig defaultConfig;
|
|
defaultConfig.threadStackSize = 0; // 使用系统默认
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [TaskSystemConfig 总览](tasksystemconfig.md) - 返回类总览
|