The video decoding thread efficiently waits for a video to be created before doing anything, rather than sleeping for 2ms in a loop. Reduces the CPU usage of the video worker thread to ~0% when no videos are loaded.

This commit is contained in:
Alex Szpakowski
2016-03-05 21:56:51 -04:00
parent 7370bd56ce
commit a0bbcce8ee
8 changed files with 76 additions and 40 deletions
+2 -2
View File
@@ -60,8 +60,8 @@ private:
void lockMutex();
void unlockMutex();
Mutex *mutex;
Conditional *cond;
MutexRef mutex;
ConditionalRef cond;
std::queue<Variant> queue;
bool named;
std::string name;