Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

34 řádky
712 B

  1. using JT809.DotNetty.Core.Interfaces;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using System.Threading;
  6. namespace JT809.DotNetty.Core.Events
  7. {
  8. public class JT809InferoprManualResetEvent: IJT809ManualResetEvent
  9. {
  10. private ManualResetEvent ManualResetEvent;
  11. public JT809InferoprManualResetEvent()
  12. {
  13. ManualResetEvent = new ManualResetEvent(false);
  14. }
  15. public void Pause()
  16. {
  17. ManualResetEvent.WaitOne();
  18. }
  19. public bool Reset()
  20. {
  21. return ManualResetEvent.Reset();
  22. }
  23. public bool Resume()
  24. {
  25. return ManualResetEvent.Set();
  26. }
  27. }
  28. }