mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-28 06:39:56 +01:00
3615a70cae
This reverts commit 85dbb9559a
.
31 lines
No EOL
815 B
C#
31 lines
No EOL
815 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)
|
|
{
|
|
this.MaxSessions = MaxSessions;
|
|
this.Parent = Parent;
|
|
}
|
|
|
|
public new static KernelResult RemoveName(Horizon System, string Name)
|
|
{
|
|
KAutoObject FoundObj = KAutoObject.FindNamedObject(System, Name);
|
|
|
|
if (!(FoundObj is KClientPort))
|
|
{
|
|
return KernelResult.NotFound;
|
|
}
|
|
|
|
return KAutoObject.RemoveName(System, Name);
|
|
}
|
|
}
|
|
} |