rrdcollector-internals.h 632 B

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