mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-21 09:51:50 +00:00
Move config to a thread local
This commit is contained in:
parent
6febcc350d
commit
5aeb9b960d
6
conf.c
6
conf.c
@ -32,11 +32,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#define CONFFILE_NAME "serval.conf"
|
||||
|
||||
struct cf_om_node *cf_om_root = NULL;
|
||||
static struct file_meta conffile_meta = FILE_META_UNKNOWN;
|
||||
static __thread struct file_meta conffile_meta = FILE_META_UNKNOWN;
|
||||
|
||||
int cf_limbo = 1;
|
||||
struct config_main config;
|
||||
static struct file_meta config_meta = FILE_META_UNKNOWN;
|
||||
__thread struct config_main config;
|
||||
static __thread struct file_meta config_meta = FILE_META_UNKNOWN;
|
||||
|
||||
static const char *conffile_path()
|
||||
{
|
||||
|
2
conf.h
2
conf.h
@ -700,7 +700,7 @@ int cf_opt_encapsulation(short *encapp, const char *text);
|
||||
int cf_fmt_encapsulation(const char **, const short *encapp);
|
||||
|
||||
extern int cf_limbo;
|
||||
extern struct config_main config;
|
||||
extern __thread struct config_main config;
|
||||
|
||||
int cf_init(void);
|
||||
int cf_load(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user