mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-11-16 11:03:55 +01:00
Postpone thread launching on g_fxo->init
This commit is contained in:
1 parent
a4bcba8971
commit
0c410f8a14
11 files changed
+112
-44
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user