- 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
659 B
659 B
Thread::GetCurrentId
static Id GetCurrentId()
获取当前执行线程的唯一标识符。这是一个静态方法,可以在任何线程上下文中调用。
参数: 无
返回: Thread::Id - 当前执行线程的唯一标识符
复杂度: O(1)
示例:
Thread worker;
worker.Start([]() {
printf("Worker thread id: %llu\n", (unsigned long long)Thread::GetCurrentId());
}, "WorkerThread");
printf("Main thread id: %llu\n", (unsigned long long)Thread::GetCurrentId());
worker.Join();