-
- /** The vectorscope color distribution.
- Class variable as calculated by a thread. */
- QImage m_scope;
- QImage m_wheel;
-
- void calculateScope();
- QFuture<void> m_scopeCalcThread;
- QFuture<QImage> m_wheelCalcThread;
-
- /** This semaphore that guards QFuture m_scopeCalcThread is necessary for avoiding
- deadlocks. If not present, then an incoming new frame might trigger a new thread
- at the wrong point in time, causing a deadlock. Nasty ;) */
- QSemaphore semaphore;
-
- /** Prods the Scope calculation thread. If it is running, do nothing. If it is not,
- run a new thread.
- Returns true if a new thread has been started. */
- bool prodCalcThread();
- bool prodWheelThread();
-