master
h 15 lines 480 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #ifndef NETDATA_THREAD_CACHE_H
4 #define NETDATA_THREAD_CACHE_H
5
6 #include "../libnetdata.h"
7
8 void *thread_cache_entry_get_or_set(void *key,
9 ssize_t key_length,
10 void *value,
11 void *(*transform_the_value_before_insert)(void *key, size_t key_length, void *value));
12
13 void thread_cache_destroy(void);
14
15 #endif //NETDATA_THREAD_CACHE_H