diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:54:23 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:54:44 +0000 |
commit | 836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch) | |
tree | 1604da8f482d02effa033c94a84be42bc0c848c3 /libnetdata/completion/completion.h | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip |
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libnetdata/completion/completion.h')
-rw-r--r-- | libnetdata/completion/completion.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/libnetdata/completion/completion.h b/libnetdata/completion/completion.h deleted file mode 100644 index 723f73688..000000000 --- a/libnetdata/completion/completion.h +++ /dev/null @@ -1,27 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0-or-later - -#ifndef NETDATA_COMPLETION_H -#define NETDATA_COMPLETION_H - -#include "../libnetdata.h" - -struct completion { - uv_mutex_t mutex; - uv_cond_t cond; - volatile unsigned completed; - volatile unsigned completed_jobs; -}; - -void completion_init(struct completion *p); - -void completion_destroy(struct completion *p); - -void completion_wait_for(struct completion *p); - -void completion_mark_complete(struct completion *p); - -unsigned completion_wait_for_a_job(struct completion *p, unsigned completed_jobs); -void completion_mark_complete_a_job(struct completion *p); -bool completion_is_done(struct completion *p); - -#endif /* NETDATA_COMPLETION_H */ |