These changes should have been in a previous commit, for tidying the SyncSafe class

This commit is contained in:
Nav
2022-04-15 14:32:26 +01:00
parent a9d9d934f6
commit bc47b1546f
2 changed files with 8 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ namespace Bloom
auto taskQueueLock = this->queuedTasks.acquireLock();
task->moveToThread(this->thread());
task->setParent(this);
this->queuedTasks.getReference().push(task);
this->queuedTasks.getValue().push(task);
emit this->taskQueued();
}
@@ -60,7 +60,7 @@ namespace Bloom
std::optional<InsightWorkerTask*> InsightWorker::getQueuedTask() {
auto task = std::optional<InsightWorkerTask*>();
auto& queuedTasks = this->queuedTasks.getReference();
auto& queuedTasks = this->queuedTasks.getValue();
auto taskQueueLock = this->queuedTasks.acquireLock();
if (!queuedTasks.empty()) {