mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-25 05:34:02 +00:00
0039bb6394
* Refactor SVC handler * Get rid of KernelErr * Split kernel code files into multiple folders
33 lines
No EOL
841 B
C#
33 lines
No EOL
841 B
C#
using Ryujinx.HLE.HOS.Kernel.Common;
|
|
|
|
namespace Ryujinx.HLE.HOS.Kernel.Ipc
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
} |