Add missing synchronization to `JobPool::CountPending` (#18414)

This commit is contained in:
Michał Janiszewski 2022-10-23 12:10:59 +02:00 committed by GitHub
parent b586e98263
commit 286f010e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ void JobPool::Join(std::function<void()> reportFn)
size_t JobPool::CountPending()
{
unique_lock lock(_mutex);
return _pending.size();
}