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 (#12822)
This commit is contained in:
parent
b198febbd4
commit
9d2b68fae5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue