mirror of https://github.com/OpenRCT2/OpenRCT2.git
Add missing synchronization to `JobPool::CountPending` (#18414)
This commit is contained in:
parent
b586e98263
commit
286f010e03
|
@ -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 New Issue