Postpone thread launching on g_fxo->init

This commit is contained in:
Eladash 2023-12-14 22:20:21 +02:00 committed by Elad Ashkenazi
parent a4bcba8971
commit 0c410f8a14
11 changed files with 112 additions and 44 deletions

View file

@ -77,16 +77,14 @@ std::vector<signaling_message> get_sign_msgs()
return msgs;
}
void need_network()
namespace np
{
g_fxo->need<network_context>();
initialize_tcp_timeout_monitor();
void init_np_handler_dependencies();
}
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>>();
np::init_np_handler_dependencies();
}
void network_thread::bind_sce_np_port()