Files
XCSDD/docs/api/threading/task/getid.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

26 lines
368 B
Markdown

# ITask::GetId
```cpp
uint64_t GetId() const
```
获取任务的唯一标识符。
**参数:**
**返回:** `uint64_t` - 任务的唯一 ID
**复杂度:** O(1)
**示例:**
```cpp
ITask* task = /* ... */;
uint64_t id = task->GetId();
printf("Task ID: %llu\n", (unsigned long long)id);
```
## 相关文档
- [ITask 总览](task.md) - 返回类总览