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/thread/getname.md
Normal file
28
docs/api/threading/thread/getname.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# Thread::GetName
|
||||
|
||||
```cpp
|
||||
const Containers::String& GetName() const
|
||||
```
|
||||
|
||||
获取线程的名称。该名称在调用 Start 时设置。
|
||||
|
||||
**参数:** 无
|
||||
|
||||
**返回:** `const Containers::String&` - 线程名称的引用
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**注意:** 在调用 Start 之前返回空字符串。
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Thread worker;
|
||||
worker.Start([]() {}, "ComputeThread");
|
||||
printf("Thread name: %s\n", worker.GetName().CStr());
|
||||
worker.Join();
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Thread 总览](thread.md) - 返回类总览
|
||||
Reference in New Issue
Block a user