diff options
author | vkalintiris <vasilis@netdata.cloud> | 2022-05-04 21:59:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-04 21:59:51 +0300 |
commit | 9d2b68fae5d6945db0e7b51f3db76bd330407492 (patch) | |
tree | 6a8e79cb8b86b642df620cf4da0a0ce1ef36ebf5 /libnetdata | |
parent | b198febbd4b87eee680ff20675b22365a6343e68 (diff) |
Broadcast completion before unlocking condition variable's mutex (#12822)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/completion/completion.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetdata/completion/completion.c b/libnetdata/completion/completion.c index 77818f40d6..b5ac86e4f1 100644 --- a/libnetdata/completion/completion.c +++ b/libnetdata/completion/completion.c @@ -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); } |