Files
XCSDD/docs/api/resources/asyncloader/update.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

28 lines
551 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AsyncLoader::Update
```cpp
void Update()
```
更新函数,在主线程调用。处理完成的加载请求,将结果从完成队列取出并在主线程执行回调。必须在主线程调用以确保线程安全。
**参数:**
**返回:**
**复杂度:** O(n)n 为完成队列中的请求数
**示例:**
```cpp
// 在主循环中调用
while (running) {
AsyncLoader::Get().Update(); // 分发完成的加载回调
RenderFrame();
}
```
## 相关文档
- [AsyncLoader 总览](asyncloader.md) - 返回类总览