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
This commit is contained in:
28
docs/api/threading/task/setid.md
Normal file
28
docs/api/threading/task/setid.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# ITask::SetId
|
||||
|
||||
```cpp
|
||||
void SetId(uint64_t id)
|
||||
```
|
||||
|
||||
设置任务的唯一标识符。通常由 TaskSystem 在提交时自动分配。
|
||||
|
||||
**参数:**
|
||||
- `id` - 要设置的唯一标识符
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
class MyTask : public ITask {
|
||||
public:
|
||||
MyTask() { SetId(GenerateId()); }
|
||||
void Execute() override { /* ... */ }
|
||||
};
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [ITask 总览](task.md) - 返回类总览
|
||||
Reference in New Issue
Block a user