mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 00:57:02 +02:00
BUG/MINOR: threads: tid_bit must be a unsigned long
This is specific to threads, no backport is needed.
This commit is contained in:
parent
e1533f5790
commit
e9a896e09e
@ -26,7 +26,7 @@
|
||||
|
||||
#define MAX_THREADS_MASK ((unsigned long)-1)
|
||||
extern THREAD_LOCAL unsigned int tid; /* The thread id */
|
||||
extern THREAD_LOCAL unsigned int tid_bit; /* The bit corresponding to the thread id */
|
||||
extern THREAD_LOCAL unsigned long tid_bit; /* The bit corresponding to the thread id */
|
||||
|
||||
#ifndef USE_THREAD
|
||||
|
||||
|
@ -18,8 +18,8 @@
|
||||
#include <common/standard.h>
|
||||
#include <proto/fd.h>
|
||||
|
||||
THREAD_LOCAL unsigned int tid = 0;
|
||||
THREAD_LOCAL unsigned int tid_bit = (1UL << 0);
|
||||
THREAD_LOCAL unsigned int tid = 0;
|
||||
THREAD_LOCAL unsigned long tid_bit = (1UL << 0);
|
||||
|
||||
#ifdef USE_THREAD
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user