| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #ifndef NETDATA_RRDCOLLECTOR_INTERNALS_H |
| 4 | #define NETDATA_RRDCOLLECTOR_INTERNALS_H |
| 5 | |
| 6 | #include "rrd.h" |
| 7 | |
| 8 | struct rrd_collector; |
| 9 | struct rrd_collector *rrd_collector_acquire_current_thread(void); |
| 10 | void rrd_collector_release(struct rrd_collector *rdc); |
| 11 | extern __thread struct rrd_collector *thread_rrd_collector; |
| 12 | bool rrd_collector_running(struct rrd_collector *rdc); |
| 13 | pid_t rrd_collector_tid(struct rrd_collector *rdc); |
| 14 | bool rrd_collector_dispatcher_acquire(struct rrd_collector *rdc); |
| 15 | void rrd_collector_dispatcher_release(struct rrd_collector *rdc); |
| 16 | |
| 17 | #endif //NETDATA_RRDCOLLECTOR_INTERNALS_H |