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:
Christopher Faulet 2017-10-31 17:30:12 +01:00 committed by Willy Tarreau
parent a06a580941
commit d7bddda151

View File

@ -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;