mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-10 05:21:00 +01: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)
|
#define MAX_THREADS_MASK ((unsigned long)-1)
|
||||||
extern THREAD_LOCAL unsigned int tid; /* The thread id */
|
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
|
#ifndef USE_THREAD
|
||||||
|
|
||||||
|
|||||||
@ -18,8 +18,8 @@
|
|||||||
#include <common/standard.h>
|
#include <common/standard.h>
|
||||||
#include <proto/fd.h>
|
#include <proto/fd.h>
|
||||||
|
|
||||||
THREAD_LOCAL unsigned int tid = 0;
|
THREAD_LOCAL unsigned int tid = 0;
|
||||||
THREAD_LOCAL unsigned int tid_bit = (1UL << 0);
|
THREAD_LOCAL unsigned long tid_bit = (1UL << 0);
|
||||||
|
|
||||||
#ifdef USE_THREAD
|
#ifdef USE_THREAD
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user