0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-05-04 09:10:31 +00:00

Broadcast completion before unlocking condition variable's mutex ()

This commit is contained in:
vkalintiris 2022-05-04 21:59:51 +03:00 committed by GitHub
parent b198febbd4
commit 9d2b68fae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,6 @@ void completion_mark_complete(struct completion *p)
{
uv_mutex_lock(&p->mutex);
p->completed = 1;
uv_mutex_unlock(&p->mutex);
uv_cond_broadcast(&p->cond);
uv_mutex_unlock(&p->mutex);
}