Hi,

A line was lost in one of our merges about threads. Sorry...

--
Christopher
>From 72146f0b689f952df46fe576f74a3bd7a3bf31e6 Mon Sep 17 00:00:00 2001
From: Christopher Faulet <[email protected]>
Date: Tue, 31 Oct 2017 17:30:12 +0100
Subject: [PATCH] BUG/MEDIUM: threads: Initialize the sync-point

The sync point must be initialized before starting threads. This line was lost
in one of merges preparing the threads support integration.
---
 src/haproxy.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/haproxy.c b/src/haproxy.c
index 2d2d87723..ed6c8ba8d 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -2806,6 +2806,8 @@ int main(int argc, char **argv)
 		pthread_t    *threads = calloc(global.nbthread, sizeof(pthread_t));
 		int          i;
 
+		THREAD_SYNC_INIT((1UL << global.nbthread) - 1);
+
 		/* Init tids array */
 		for (i = 0; i < global.nbthread; i++)
 			tids[i] = i;
-- 
2.13.6

Reply via email to