summaryrefslogtreecommitdiffstats
path: root/src/database/rrdcollector-internals.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/database/rrdcollector-internals.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/database/rrdcollector-internals.h b/src/database/rrdcollector-internals.h
new file mode 100644
index 000000000..d63ef6a76
--- /dev/null
+++ b/src/database/rrdcollector-internals.h
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#ifndef NETDATA_RRDCOLLECTOR_INTERNALS_H
+#define NETDATA_RRDCOLLECTOR_INTERNALS_H
+
+#include "rrd.h"
+
+struct rrd_collector;
+struct rrd_collector *rrd_collector_acquire_current_thread(void);
+void rrd_collector_release(struct rrd_collector *rdc);
+extern __thread struct rrd_collector *thread_rrd_collector;
+bool rrd_collector_running(struct rrd_collector *rdc);
+pid_t rrd_collector_tid(struct rrd_collector *rdc);
+bool rrd_collector_dispatcher_acquire(struct rrd_collector *rdc);
+void rrd_collector_dispatcher_release(struct rrd_collector *rdc);
+
+#endif //NETDATA_RRDCOLLECTOR_INTERNALS_H