no need to lock twice on siblings

This commit is contained in:
itsmattkc
2019-09-13 12:47:59 +10:00
parent 5ab622ba81
commit c48787cdab
5 changed files with 41 additions and 36 deletions
+2 -2
View File
@@ -368,7 +368,7 @@ void RendererProcessor::CacheNext()
qDebug() << "Caching" << cache_frame.toDouble();
threads_.first()->Queue(NodeDependency(texture_input_->get_connected_output(), cache_frame), true);
threads_.first()->Queue(NodeDependency(texture_input_->get_connected_output(), cache_frame), true, false);
caching_ = true;
}
@@ -460,7 +460,7 @@ void RendererProcessor::ThreadRequestSibling(NodeDependency dep)
{
// Try to queue another thread to run this dep in advance
for (int i=1;i<threads_.size();i++) {
if (threads_.at(i)->Queue(dep, false)) {
if (threads_.at(i)->Queue(dep, false, true)) {
return;
}
}