mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
seem to be simply duplication of the x86 instruction set tests into the addrcheck and helgrind trees. I'm not sure what this duplication achieves. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3264
26 lines
358 B
C
26 lines
358 B
C
/* Make sure there are no thread lifetime related leaks... */
|
|
#include <pthread.h>
|
|
#include <stdio.h>
|
|
|
|
static void *func(void *v)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
int i;
|
|
|
|
for(i = 0; i < 10000; i++) {
|
|
pthread_t th;
|
|
|
|
if (i > 0 && i % 1000 == 0)
|
|
printf("%d...\n", i);
|
|
|
|
pthread_create(&th, NULL, func, NULL);
|
|
pthread_join(th, NULL);
|
|
}
|
|
|
|
return 0;
|
|
}
|