mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 17:19:28 +01:00
Replace DrainAndBlockCompileThreads with StopThreads, and same for resuming.
This commit is contained in:
1 parent
0e708367b5
commit
0bf7a98aff
3 files changed
+7
-26
No files matched your search
@@ -408,23 +408,6 @@ void VulkanRenderManager::StopThreads() {
|
||||
_dbg_assert_(steps_.empty());
|
||||
}
|
||||
|
||||
void VulkanRenderManager::DrainAndBlockCompileQueue() {
|
||||
runCompileThread_ = false;
|
||||
compileCond_.notify_all();
|
||||
compileThread_.join();
|
||||
|
||||
_assert_(compileQueue_.empty());
|
||||
|
||||
// At this point, no more tasks can be queued to the threadpool. So wait for them all to go away.
|
||||
CreateMultiPipelinesTask::WaitForAll();
|
||||
}
|
||||
|
||||
void VulkanRenderManager::ReleaseCompileQueue() {
|
||||
runCompileThread_ = true;
|
||||
INFO_LOG(G3D, "Restarting Vulkan compiler thread");
|
||||
compileThread_ = std::thread(&VulkanRenderManager::CompileThreadFunc, this);
|
||||
}
|
||||
|
||||
void VulkanRenderManager::DestroyBackbuffers() {
|
||||
StopThreads();
|
||||
vulkan_->WaitUntilQueueIdle();
|
||||
|
||||
Reference in new issue
Block a user