hold worker busy state in renderbackend rather than in renderworker

Workers run in different threads and the backends can poll whether the worker
is currently busy or not. However the previous iteration has the worker (and an
atomic int) provide the busy state which could easily desync with the main
thread (since all workers run in different threads). By holding the busy states
in the main thread, the main thread will always be able to poll the busy state
accurately.
This commit is contained in:
itsmattkc
2019-12-06 19:38:57 +11:00
parent 5227e10f39
commit f6064b40df
9 changed files with 41 additions and 58 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ void TimelineWidget::PointerTool::InitiateDrag(const TimelineCoordinate &mouse_p
olive::timeline::MovementMode trim_mode = olive::timeline::kNone;
// FIXME: Hardcoded number
const int kTrimHandle = 20;
const int kTrimHandle = 10;
qreal mouse_x = parent()->TimeToScene(mouse_pos.GetFrame());