1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00

Notify workers when only at least one job is posted

This commit is contained in:
elsid 2019-03-08 15:27:16 +03:00
parent b9b8ed177c
commit 82e2739bae
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -87,7 +87,8 @@ namespace DetourNavigator
log("posted ", mJobs.size(), " jobs"); log("posted ", mJobs.size(), " jobs");
mHasJob.notify_all(); if (!mJobs.empty())
mHasJob.notify_all();
} }
void AsyncNavMeshUpdater::wait() void AsyncNavMeshUpdater::wait()