Remove unnecessary template specification for lock_guard

This commit is contained in:
Alexander Bock
2021-07-30 14:48:08 +02:00
parent f6d74870bb
commit 5b3a66156c
11 changed files with 24 additions and 24 deletions

View File

@@ -36,7 +36,7 @@ template<typename P>
void ConcurrentJobManager<P>::enqueueJob(std::shared_ptr<Job<P>> job) {
threadPool.enqueue([this, job]() {
job->execute();
std::lock_guard<std::mutex> lock(_finishedJobsMutex);
std::lock_guard lock(_finishedJobsMutex);
_finishedJobs.push(job);
});
}
@@ -50,7 +50,7 @@ template<typename P>
std::shared_ptr<Job<P>> ConcurrentJobManager<P>::popFinishedJob() {
ghoul_assert(!_finishedJobs.empty(), "There is no finished job to pop!");
std::lock_guard<std::mutex> lock(_finishedJobsMutex);
std::lock_guard lock(_finishedJobsMutex);
return _finishedJobs.pop();
}