summaryrefslogtreecommitdiffstats
path: root/database/engine/rrdenglocking.h
blob: 078eab38b7fb3bf45aa9ae426f599d0dc9f7dac6 (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_RRDENGLOCKING_H
#define NETDATA_RRDENGLOCKING_H

#include "rrdengine.h"

/* Forward declarations */
struct page_cache_descr;

struct page_cache_descr *rrdeng_create_pg_cache_descr(struct rrdengine_instance *ctx);
void rrdeng_destroy_pg_cache_descr(struct rrdengine_instance *ctx, struct page_cache_descr *pg_cache_descr);
void rrdeng_page_descr_mutex_lock(struct rrdengine_instance *ctx, struct rrdeng_page_descr *descr);
void rrdeng_page_descr_mutex_unlock(struct rrdengine_instance *ctx, struct rrdeng_page_descr *descr);
void rrdeng_try_deallocate_pg_cache_descr(struct rrdengine_instance *ctx, struct rrdeng_page_descr *descr);

#endif /* NETDATA_RRDENGLOCKING_H */