mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-16 04:32:06 +02:00
MINOR: init/threads: make the threads array global
Currently the thread array is a local variable inside a function block and there is no access to it from outside, which often complicates debugging. Let's make it global and export it. Also the allocation return is now checked.
This commit is contained in:
@@ -242,6 +242,7 @@ extern int master; /* 1 if in master, 0 otherwise */
|
||||
extern unsigned int rlim_fd_cur_at_boot;
|
||||
extern unsigned int rlim_fd_max_at_boot;
|
||||
extern int atexit_flag;
|
||||
__decl_hathreads(extern pthread_t *threads);
|
||||
|
||||
/* bit values to go with "warned" above */
|
||||
#define WARN_BLOCK_DEPRECATED 0x00000001
|
||||
|
||||
Reference in New Issue
Block a user