Files
XCEngine/docs/api/resources/asyncloader/initialize.md

24 lines
493 B
Markdown
Raw 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::Initialize
```cpp
void Initialize(Core::uint32 workerThreadCount = 2)
```
初始化异步加载器。根据 `workerThreadCount` 参数创建相应数量的工作线程用于后台资源加载。
**参数:**
- `workerThreadCount` - 工作线程数量,默认为 2
**返回:**
**复杂度:** O(n)n 为创建的工作线程数
**示例:**
```cpp
AsyncLoader::Get().Initialize(4);
```
## 相关文档
- [AsyncLoader 总览](asyncloader.md) - 返回类总览