yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

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:
Lioncash 2020-11-20 04:46:53 -05:00
parent ba3916fc67
commit 01db5cf203
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ void AsyncShaders::AllocateWorkers() {
// Create workers
for (std::size_t i = 0; i < num_workers; i++) {
context_list.push_back(emu_window.CreateSharedContext());
worker_threads.push_back(
std::thread(&AsyncShaders::ShaderCompilerThread, this, context_list[i].get()));
worker_threads.emplace_back(&AsyncShaders::ShaderCompilerThread, this,
context_list[i].get());
}
}