mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 18:31:59 -05:00
Add missing synchronization to JobPool::CountPending
(#18414)
This commit is contained in:
parent
b586e98263
commit
286f010e03
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ void JobPool::Join(std::function<void()> reportFn)
|
|||
|
||||
size_t JobPool::CountPending()
|
||||
{
|
||||
unique_lock lock(_mutex);
|
||||
return _pending.size();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue