RPCS3 / rpcs3

PlayStation 3 emulator and debugger
https://rpcs3.net/
GNU General Public License v2.0
15.64k stars 1.92k forks source link

sys_net: Add mutex to protect ppu_to_awake #16330

Closed RipleyTom closed 1 week ago

elad335 commented 1 week ago

Maybe it can be thread_local instead?

RipleyTom commented 1 week ago

After reviewing the code I realize that it can't be an issue, queue_wake and awake_threads are always called on the same thread(in network_thread or p2p_thread).