mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12:00
re-add scope to sys_net_bnet_poll
This commit is contained in:
parent
72b2876b6a
commit
855b23b3fe
1 changed files with 84 additions and 82 deletions
|
@ -1057,6 +1057,7 @@ error_code sys_net_bnet_poll(ppu_thread& ppu, vm::ptr<sys_net_pollfd> fds, s32 n
|
||||||
|
|
||||||
std::vector<sys_net_pollfd> fds_buf;
|
std::vector<sys_net_pollfd> fds_buf;
|
||||||
|
|
||||||
|
{
|
||||||
fds_buf.assign(fds.get_ptr(), fds.get_ptr() + nfds);
|
fds_buf.assign(fds.get_ptr(), fds.get_ptr() + nfds);
|
||||||
|
|
||||||
std::unique_lock nw_lock(g_fxo->get<network_context>().s_nw_mutex);
|
std::unique_lock nw_lock(g_fxo->get<network_context>().s_nw_mutex);
|
||||||
|
@ -1166,6 +1167,7 @@ error_code sys_net_bnet_poll(ppu_thread& ppu, vm::ptr<sys_net_pollfd> fds, s32 n
|
||||||
}
|
}
|
||||||
|
|
||||||
lv2_obj::sleep(ppu, timeout);
|
lv2_obj::sleep(ppu, timeout);
|
||||||
|
}
|
||||||
|
|
||||||
while (auto state = ppu.state.fetch_sub(cpu_flag::signal))
|
while (auto state = ppu.state.fetch_sub(cpu_flag::signal))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue