From 282892634e2ea123a79c4333a42efebf624dba1d Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Sun, 26 Nov 2023 23:39:38 +0100 Subject: [PATCH] sockets: Rename Refcount to RefCount --- src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/BsdContext.cs | 6 +++--- src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IFileDescriptor.cs | 2 +- .../HOS/Services/Sockets/Bsd/Impl/EventFileDescriptor.cs | 2 +- .../HOS/Services/Sockets/Bsd/Impl/ManagedSocket.cs | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/BsdContext.cs b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/BsdContext.cs index 7ecd6835d..b03fba375 100644 --- a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/BsdContext.cs +++ b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/BsdContext.cs @@ -103,7 +103,7 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd { lock (_lock) { - oldFile.Refcount++; + oldFile.RefCount++; return RegisterFileDescriptor(oldFile); } @@ -118,9 +118,9 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd if (file != null) { - file.Refcount--; + file.RefCount--; - if (file.Refcount <= 0) + if (file.RefCount <= 0) { file.Dispose(); } diff --git a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IFileDescriptor.cs b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IFileDescriptor.cs index 6c00d5e11..4ad580678 100644 --- a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IFileDescriptor.cs +++ b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IFileDescriptor.cs @@ -6,7 +6,7 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd interface IFileDescriptor : IDisposable { bool Blocking { get; set; } - int Refcount { get; set; } + int RefCount { get; set; } LinuxError Read(out int readSize, Span buffer); diff --git a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/EventFileDescriptor.cs b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/EventFileDescriptor.cs index 5b9e6811d..7c599335f 100644 --- a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/EventFileDescriptor.cs +++ b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/EventFileDescriptor.cs @@ -32,7 +32,7 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd.Impl UpdateEventStates(); } - public int Refcount { get; set; } + public int RefCount { get; set; } public void Dispose() { diff --git a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/ManagedSocket.cs b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/ManagedSocket.cs index c42b7201b..1079fde6e 100644 --- a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/ManagedSocket.cs +++ b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/ManagedSocket.cs @@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd.Impl { class ManagedSocket : ISocket { - public int Refcount { get; set; } + public int RefCount { get; set; } public AddressFamily AddressFamily => Socket.AddressFamily; @@ -32,13 +32,13 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd.Impl public ManagedSocket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) { Socket = new Socket(addressFamily, socketType, protocolType); - Refcount = 1; + RefCount = 1; } private ManagedSocket(Socket socket) { Socket = socket; - Refcount = 1; + RefCount = 1; } private static SocketFlags ConvertBsdSocketFlags(BsdSocketFlags bsdSocketFlags)