1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-18 14:02:03 +00:00

sockets: Rename Refcount to RefCount

This commit is contained in:
TSR Berry 2023-11-26 23:39:38 +01:00
parent 23fa5f4c9c
commit 282892634e
No known key found for this signature in database
GPG key ID: 52353C0A4CCA15E2
4 changed files with 8 additions and 8 deletions

View file

@ -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();
}

View file

@ -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<byte> buffer);

View file

@ -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()
{

View file

@ -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)