mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04: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
2 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue