Fix potential thread_pool crash on exit
Minor issue.
This commit is contained in:
@@ -39,6 +39,7 @@ DYNAMIC_IMPORT("ntdll.dll", NtSetTimerResolution, NTSTATUS(ULONG DesiredResoluti
|
|||||||
|
|
||||||
#include "Utilities/sysinfo.h"
|
#include "Utilities/sysinfo.h"
|
||||||
#include "Utilities/Config.h"
|
#include "Utilities/Config.h"
|
||||||
|
#include "Utilities/Thread.h"
|
||||||
#include "rpcs3_version.h"
|
#include "rpcs3_version.h"
|
||||||
#include "Emu/System.h"
|
#include "Emu/System.h"
|
||||||
#include <thread>
|
#include <thread>
|
||||||
@@ -367,6 +368,9 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Initialize thread pool finalizer (on first use)
|
||||||
|
named_thread("", []{});
|
||||||
|
|
||||||
std::unique_ptr<logs::listener> log_file;
|
std::unique_ptr<logs::listener> log_file;
|
||||||
{
|
{
|
||||||
// Check free space
|
// Check free space
|
||||||
|
|||||||
Reference in New Issue
Block a user