mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-25 19:11:21 -08:00
async_shaders: emplace threads into the worker thread vector
Same behavior, but constructs the threads in place instead of moving them.
This commit is contained in:
parent
ba3916fc67
commit
01db5cf203
@ -43,8 +43,8 @@ void AsyncShaders::AllocateWorkers() {
|
|||||||
// Create workers
|
// Create workers
|
||||||
for (std::size_t i = 0; i < num_workers; i++) {
|
for (std::size_t i = 0; i < num_workers; i++) {
|
||||||
context_list.push_back(emu_window.CreateSharedContext());
|
context_list.push_back(emu_window.CreateSharedContext());
|
||||||
worker_threads.push_back(
|
worker_threads.emplace_back(&AsyncShaders::ShaderCompilerThread, this,
|
||||||
std::thread(&AsyncShaders::ShaderCompilerThread, this, context_list[i].get()));
|
context_list[i].get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user