mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-04 02:19:09 +00:00
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.
This commit is contained in:
parent
a06a580941
commit
d7bddda151
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user