1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-02 19:12:01 +00:00
Ryujinx/Ryujinx.HLE/HOS/Kernel/KClientPort.cs
2018-12-01 14:24:37 -06:00

31 lines
No EOL
799 B
C#

namespace Ryujinx.HLE.HOS.Kernel
{
class KClientPort : KSynchronizationObject
{
private int _sessionsCount;
private int _currentCapacity;
private int _maxSessions;
private KPort _parent;
public KClientPort(Horizon system) : base(system) { }
public void Initialize(KPort parent, int maxSessions)
{
_maxSessions = maxSessions;
_parent = parent;
}
public new static KernelResult RemoveName(Horizon system, string name)
{
KAutoObject foundObj = FindNamedObject(system, name);
if (!(foundObj is KClientPort))
{
return KernelResult.NotFound;
}
return KAutoObject.RemoveName(system, name);
}
}
}