21e88f17f6
* Add guard against ServerBase.Dispose() being called multiple times. Add reset event to avoid Dispose() being called while the ServerLoop is still running. * remove unused usings * rework ServerBase to use one collection each for sessions and ports, and make all accesses thread-safe. * fix Logger call * use GetSessionObj(int) instead of using _sessions directly * move _threadStopped check inside "dispose once" test * - Replace _threadStopped event with attempt to Join() the ending thread (if that isn't the current thread) instead. - Use the instance-local _selfProcess and (new) _selfThread variables to avoid suggesting that the current KProcess and KThread could change. Per gdkchan, they can't currently, and this old IPC system will be removed before that changes. - Re-order Dispose() so that the Interlocked _isDisposed check is the last check before disposing, to increase the likelihood that multiple callers will result in one of them succeeding. * code style suggestions per AcK77 * add infinite wait for thread termination |
||
---|---|---|
.. | ||
ARMeilleure | ||
Ryujinx | ||
Ryujinx.Audio | ||
Ryujinx.Audio.Backends.OpenAL | ||
Ryujinx.Audio.Backends.SDL2 | ||
Ryujinx.Audio.Backends.SoundIo | ||
Ryujinx.Ava | ||
Ryujinx.Common | ||
Ryujinx.Cpu | ||
Ryujinx.Graphics.Device | ||
Ryujinx.Graphics.GAL | ||
Ryujinx.Graphics.Gpu | ||
Ryujinx.Graphics.Host1x | ||
Ryujinx.Graphics.Nvdec | ||
Ryujinx.Graphics.Nvdec.FFmpeg | ||
Ryujinx.Graphics.Nvdec.Vp9 | ||
Ryujinx.Graphics.OpenGL | ||
Ryujinx.Graphics.Shader | ||
Ryujinx.Graphics.Texture | ||
Ryujinx.Graphics.Vic | ||
Ryujinx.Graphics.Video | ||
Ryujinx.Graphics.Vulkan | ||
Ryujinx.Headless.SDL2 | ||
Ryujinx.HLE | ||
Ryujinx.Horizon | ||
Ryujinx.Horizon.Common | ||
Ryujinx.Horizon.Generators | ||
Ryujinx.Horizon.Kernel.Generators | ||
Ryujinx.Input | ||
Ryujinx.Input.SDL2 | ||
Ryujinx.Memory | ||
Ryujinx.SDL2.Common | ||
Ryujinx.ShaderTools | ||
Ryujinx.Tests | ||
Ryujinx.Tests.Memory | ||
Ryujinx.Tests.Unicorn | ||
Ryujinx.Ui.Common | ||
Ryujinx.Ui.LocaleGenerator | ||
Spv.Generator |