repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mc_translate.c: enable further uses of DLexpensive for scalar EQ/NE comparisons
[valgrind.git]
/
none
/
tests
/
pth_exit.c
blob
75f19a70476abc5671c6f246b37715d84e366f9d
1
#include <pthread.h>
2
#include <unistd.h>
3
4
static void
*
th
(
void
*
v
)
5
{
6
sleep
(
1
);
7
pthread_exit
(
0
);
8
}
9
10
int
main
()
11
{
12
pthread_t a
;
13
14
pthread_create
(&
a
,
NULL
,
th
,
NULL
);
15
pthread_create
(&
a
,
NULL
,
th
,
NULL
);
16
pthread_create
(&
a
,
NULL
,
th
,
NULL
);
17
pthread_create
(&
a
,
NULL
,
th
,
NULL
);
18
19
pthread_exit
(
0
);
20
}