Skip to content

Commit

Permalink
Fix QMutexLocker bug (#950)
Browse files Browse the repository at this point in the history
Fixing GenericWatcher::scheduleBlockingTask() so that it actually holds
the tasksMutex when it is pushing new task information.
  • Loading branch information
acolwell committed Mar 10, 2024
1 parent 95fd6d5 commit fea1bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Engine/GenericSchedulerThreadWatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ GenericWatcher::scheduleBlockingTask(int taskID,
}

{
QMutexLocker(&_imp->tasksMutex);
QMutexLocker k(&_imp->tasksMutex);
GenericWatcherPrivate::Task t;
t.id = taskID;
t.args = args;
Expand Down

0 comments on commit fea1bbf

Please sign in to comment.