mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-09 22:04:13 -05:00
MINOR: threads: Fix build when we're not compiling with threads.
Only declare the start_lock if threads are compiled in, otherwise
HA_SPINLOCK_T won't be defined.
This should be backported to 1.8 when/if
1605c7ae61 is backported.
This commit is contained in:
parent
46ec48bc1a
commit
0048dd04c9
1 changed files with 3 additions and 1 deletions
|
|
@ -2422,7 +2422,9 @@ static void *run_thread_poll_loop(void *data)
|
|||
{
|
||||
struct per_thread_init_fct *ptif;
|
||||
struct per_thread_deinit_fct *ptdf;
|
||||
static __maybe_unused HA_SPINLOCK_T start_lock;
|
||||
#ifdef USE_THREAD
|
||||
static HA_SPINLOCK_T start_lock;
|
||||
#endif
|
||||
|
||||
tid = *((unsigned int *)data);
|
||||
tid_bit = (1UL << tid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue