haproxy/include/types/dict.h
Willy Tarreau af613e8359 CLEANUP: thread: rename __decl_hathreads() to __decl_thread()
I can never figure whether it takes an "s" or not, and in the end it's
better if it matches the file's naming, so let's call it "__decl_thread".
2020-06-11 10:18:56 +02:00

19 lines
313 B
C

#ifndef _TYPES_DICT_H
#define _TYPES_DICT_H
#include <haproxy/thread.h>
#include <import/ebpttree.h>
struct dict_entry {
struct ebpt_node value;
unsigned int refcount;
size_t len;
};
struct dict {
const char *name;
struct eb_root values;
__decl_thread(HA_RWLOCK_T rwlock);
};
#endif /* _TYPES_DICT_H */