mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-26 04:32:35 +01:00
Fix initialization order for network_thread
This commit is contained in:
parent
57cc7037f6
commit
cee6d03033
@ -83,6 +83,12 @@ void need_network()
|
|||||||
initialize_tcp_timeout_monitor();
|
initialize_tcp_timeout_monitor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
network_thread::network_thread()
|
||||||
|
{
|
||||||
|
// Ensures IDM for lv2_socket is always valid when the thread is running
|
||||||
|
g_fxo->init<id_manager::id_map<lv2_socket>>();
|
||||||
|
}
|
||||||
|
|
||||||
void network_thread::bind_sce_np_port()
|
void network_thread::bind_sce_np_port()
|
||||||
{
|
{
|
||||||
std::lock_guard list_lock(list_p2p_ports_mutex);
|
std::lock_guard list_lock(list_p2p_ports_mutex);
|
||||||
|
@ -17,6 +17,7 @@ struct network_thread
|
|||||||
|
|
||||||
static constexpr auto thread_name = "Network Thread";
|
static constexpr auto thread_name = "Network Thread";
|
||||||
|
|
||||||
|
network_thread();
|
||||||
void bind_sce_np_port();
|
void bind_sce_np_port();
|
||||||
void operator()();
|
void operator()();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user