FreeBSD _umtx_op: fix bad wrapper for robust lists
[valgrind.git] / none / tests / manythreads.c
blob3ae0c9754d3cba102c034583ae916dcea470bb70
1 /* Make sure there are no thread lifetime related leaks... */
2 #include <pthread.h>
3 #include <stdio.h>
5 static void *func(void *v)
7 return NULL;
10 int main()
12 int i;
14 for(i = 0; i < 10000; i++) {
15 pthread_t th;
17 if (i > 0 && i % 1000 == 0)
18 printf("%d...\n", i);
20 pthread_create(&th, NULL, func, NULL);
21 pthread_join(th, NULL);
24 return 0;