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:
27
docs/api/threading/task/getpriority.md
Normal file
27
docs/api/threading/task/getpriority.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# ITask::GetPriority
|
||||
|
||||
```cpp
|
||||
TaskPriority GetPriority() const
|
||||
```
|
||||
|
||||
获取任务的优先级。
|
||||
|
||||
**参数:** 无
|
||||
|
||||
**返回:** `TaskPriority` - 当前任务的优先级
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
ITask* task = /* ... */;
|
||||
TaskPriority priority = task->GetPriority();
|
||||
if (priority == TaskPriority::Critical) {
|
||||
printf("Critical task\n");
|
||||
}
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [ITask 总览](task.md) - 返回类总览
|
||||
Reference in New Issue
Block a user