KClientPort.cs 841 B

123456789101112131415161718192021222324252627282930313233
  1. using Ryujinx.HLE.HOS.Kernel.Common;
  2. namespace Ryujinx.HLE.HOS.Kernel.Ipc
  3. {
  4. class KClientPort : KSynchronizationObject
  5. {
  6. private int _sessionsCount;
  7. private int _currentCapacity;
  8. private int _maxSessions;
  9. private KPort _parent;
  10. public KClientPort(Horizon system) : base(system) { }
  11. public void Initialize(KPort parent, int maxSessions)
  12. {
  13. _maxSessions = maxSessions;
  14. _parent = parent;
  15. }
  16. public new static KernelResult RemoveName(Horizon system, string name)
  17. {
  18. KAutoObject foundObj = FindNamedObject(system, name);
  19. if (!(foundObj is KClientPort))
  20. {
  21. return KernelResult.NotFound;
  22. }
  23. return KAutoObject.RemoveName(system, name);
  24. }
  25. }
  26. }