stopplay_waiting_thread.h 510 B

1234567891011121314151617181920212223242526
  1. #ifndef AVPLAYER2_STOPPLAY_WAITING_THREAD_H
  2. #define AVPLAYER2_STOPPLAY_WAITING_THREAD_H
  3. #pragma once
  4. #include "ThreadBase.h"
  5. #include <atomic>
  6. #include <string>
  7. class PlayerController;
  8. class StopWaitingThread : public ThreadBase
  9. {
  10. public:
  11. explicit StopWaitingThread(PlayerController* parent, const std::string& file = "");
  12. ~StopWaitingThread();
  13. protected:
  14. void run() override;
  15. private:
  16. std::string m_file;
  17. PlayerController* m_parent;
  18. };
  19. #endif // AVPLAYER2_STOPPLAY_WAITING_THREAD_H