summaryrefslogtreecommitdiffstats
path: root/src/database/rrdcollector-internals.h
blob: d63ef6a76b615d37947068f730a07c1afd6a9411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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