KClientPort.cs 815 B

12345678910111213141516171819202122232425262728293031
  1. namespace Ryujinx.HLE.HOS.Kernel
  2. {
  3. class KClientPort : KSynchronizationObject
  4. {
  5. private int SessionsCount;
  6. private int CurrentCapacity;
  7. private int MaxSessions;
  8. private KPort Parent;
  9. public KClientPort(Horizon System) : base(System) { }
  10. public void Initialize(KPort Parent, int MaxSessions)
  11. {
  12. this.MaxSessions = MaxSessions;
  13. this.Parent = Parent;
  14. }
  15. public new static KernelResult RemoveName(Horizon System, string Name)
  16. {
  17. KAutoObject FoundObj = KAutoObject.FindNamedObject(System, Name);
  18. if (!(FoundObj is KClientPort))
  19. {
  20. return KernelResult.NotFound;
  21. }
  22. return KAutoObject.RemoveName(System, Name);
  23. }
  24. }
  25. }