mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 21:11:25 +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
|
@ -2040,6 +2040,12 @@ DECLARE(thread_ctrl::g_native_core_layout) { native_core_arrangement::undefined
|
|||
|
||||
void thread_base::start()
|
||||
{
|
||||
m_sync.atomic_op([&](u32& v)
|
||||
{
|
||||
v &= ~static_cast<u32>(thread_state::mask);
|
||||
v |= static_cast<u32>(thread_state::created);
|
||||
});
|
||||
|
||||
#ifdef _WIN32
|
||||
m_thread = ::_beginthreadex(nullptr, 0, entry_point, this, CREATE_SUSPENDED, nullptr);
|
||||
ensure(m_thread);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue