Rename _playing_condition -> _thread_work_condition.
authorCarl Hetherington <cth@carlh.net>
Sat, 27 Jun 2020 22:49:54 +0000 (00:49 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 27 Jun 2020 22:49:54 +0000 (00:49 +0200)
src/wx/gl_video_view.cc
src/wx/gl_video_view.h

index 0e4bcb6..2300cc6 100644 (file)
@@ -303,7 +303,7 @@ GLVideoView::start ()
 
        boost::mutex::scoped_lock lm (_playing_mutex);
        _playing = true;
-       _playing_condition.notify_all ();
+       _thread_work_condition.notify_all ();
 }
 
 void
@@ -326,7 +326,7 @@ try
        while (true) {
                boost::mutex::scoped_lock lm (_playing_mutex);
                while (!_playing && !_one_shot) {
-                       _playing_condition.wait (lm);
+                       _thread_work_condition.wait (lm);
                }
                _one_shot = false;
                lm.unlock ();
@@ -386,7 +386,7 @@ GLVideoView::request_one_shot ()
 {
        boost::mutex::scoped_lock lm (_playing_mutex);
        _one_shot = true;
-       _playing_condition.notify_all ();
+       _thread_work_condition.notify_all ();
 }
 
 void
index 84d97c7..f129b6e 100644 (file)
@@ -71,7 +71,7 @@ private:
        boost::thread _thread;
 
        boost::mutex _playing_mutex;
-       boost::condition _playing_condition;
+       boost::condition _thread_work_condition;
        bool _playing;
        bool _one_shot;