Fix potential thread_pool crash on exit

Minor issue.
This commit is contained in:
Nekotekina 2020-12-15 20:01:26 +03:00
parent e39348ad96
commit 24c246a9f6
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,7 @@ DYNAMIC_IMPORT("ntdll.dll", NtSetTimerResolution, NTSTATUS(ULONG DesiredResoluti
#include "Utilities/sysinfo.h"
#include "Utilities/Config.h"
#include "Utilities/Thread.h"
#include "rpcs3_version.h"
#include "Emu/System.h"
#include <thread>
@ -367,6 +368,9 @@ int main(int argc, char** argv)
}
#endif
// Initialize thread pool finalizer (on first use)
named_thread("", []{});
std::unique_ptr<logs::listener> log_file;
{
// Check free space