1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-02 21:42:02 +00:00
Ryujinx/Ryujinx.HLE/HOS/Kernel/KClientPort.cs

31 lines
799 B
C#
Raw Normal View History

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