mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-02 21:30:25 -05:00
BUILD: thread/pipe: fix build without threads
Marcus Rckert reported that commit d8b3b65 ("BUG/MEDIUM: splice/threads:
pipe reuse list was not protected.") broke threadless support. Add the
required #ifdef.
This commit is contained in:
parent
18f133adb3
commit
3e5e417060
1 changed files with 3 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#include <common/config.h>
|
||||
#include <common/hathreads.h>
|
||||
#include <common/memory.h>
|
||||
|
||||
#include <types/global.h>
|
||||
|
|
@ -21,7 +22,9 @@
|
|||
|
||||
struct pool_head *pool2_pipe = NULL;
|
||||
struct pipe *pipes_live = NULL; /* pipes which are still ready to use */
|
||||
#ifdef USE_THREAD
|
||||
HA_SPINLOCK_T pipes_lock; /* lock used to protect pipes list */
|
||||
#endif
|
||||
int pipes_used = 0; /* # of pipes in use (2 fds each) */
|
||||
int pipes_free = 0; /* # of pipes unused */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue