rrdcollector.h 944 B

123456789101112131415161718192021222324252627282930
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #ifndef NETDATA_RRDCOLLECTOR_H
  3. #define NETDATA_RRDCOLLECTOR_H
  4. #include "rrd.h"
  5. #ifdef NETDATA_RRDCOLLECTOR_INTERNALS
  6. // ----------------------------------------------------------------------------
  7. // private API
  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. #endif // NETDATA_RRDCOLLECTOR_INTERNALS
  17. // ----------------------------------------------------------------------------
  18. // public API
  19. void rrd_collector_started(void);
  20. void rrd_collector_finished(void);
  21. #endif //NETDATA_RRDCOLLECTOR_H