mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 14:49:45 -04: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue