mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
Fix potential thread_pool crash on exit
Minor issue.
This commit is contained in:
parent
e39348ad96
commit
24c246a9f6
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue