mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Fix initialization order for network_thread
This commit is contained in:
parent
57cc7037f6
commit
cee6d03033
2 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue