Skip to content

Commit

Permalink
Add missing synchronization to JobPool::CountPending (#18414)
Browse files Browse the repository at this point in the history
  • Loading branch information
janisozaur committed Oct 23, 2022
1 parent b586e98 commit 286f010
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/openrct2/core/JobPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ void JobPool::Join(std::function<void()> reportFn)

size_t JobPool::CountPending()
{
unique_lock lock(_mutex);
return _pending.size();
}

Expand Down

0 comments on commit 286f010

Please sign in to comment.