KClientPort.cs 799 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. _maxSessions = maxSessions;
  13. _parent = parent;
  14. }
  15. public new static KernelResult RemoveName(Horizon system, string name)
  16. {
  17. KAutoObject foundObj = FindNamedObject(system, name);
  18. if (!(foundObj is KClientPort))
  19. {
  20. return KernelResult.NotFound;
  21. }
  22. return KAutoObject.RemoveName(system, name);
  23. }
  24. }
  25. }