mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02: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));
|
pthread_t *threads = calloc(global.nbthread, sizeof(pthread_t));
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
THREAD_SYNC_INIT((1UL << global.nbthread) - 1);
|
||||||
|
|
||||||
/* Init tids array */
|
/* Init tids array */
|
||||||
for (i = 0; i < global.nbthread; i++)
|
for (i = 0; i < global.nbthread; i++)
|
||||||
tids[i] = i;
|
tids[i] = i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user