diff options
Diffstat (limited to 'database/engine/rrdenglocking.h')
-rw-r--r-- | database/engine/rrdenglocking.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/database/engine/rrdenglocking.h b/database/engine/rrdenglocking.h index 078eab38b7..1f78154d16 100644 --- a/database/engine/rrdenglocking.h +++ b/database/engine/rrdenglocking.h @@ -10,7 +10,14 @@ 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); + +#ifdef NETDATA_INTERNAL_CHECKS +#define rrdeng_page_descr_mutex_lock(ctx, descr) rrdeng_page_descr_mutex_lock_with_trace(ctx, descr, __FUNCTION__, __LINE__) +void rrdeng_page_descr_mutex_lock_with_trace(struct rrdengine_instance *ctx, struct rrdeng_page_descr *descr, const char *function, size_t line); +#else void rrdeng_page_descr_mutex_lock(struct rrdengine_instance *ctx, struct rrdeng_page_descr *descr); +#endif + 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); |