mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12:00
Postpone thread launching on g_fxo->init
This commit is contained in:
parent
a4bcba8971
commit
0c410f8a14
11 changed files with 112 additions and 44 deletions
|
@ -2875,9 +2875,9 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
|
|||
|
||||
for (const auto& [type, data] : *g_fxo)
|
||||
{
|
||||
if (type.stop)
|
||||
if (type.thread_op)
|
||||
{
|
||||
type.stop(data, thread_state::aborting);
|
||||
type.thread_op(data, thread_state::aborting);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2928,9 +2928,9 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
|
|||
// Join threads
|
||||
for (const auto& [type, data] : *g_fxo)
|
||||
{
|
||||
if (type.stop)
|
||||
if (type.thread_op)
|
||||
{
|
||||
type.stop(data, thread_state::finished);
|
||||
type.thread_op(data, thread_state::finished);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue