repo.or.cz
/
glibc
/
pb-stable.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* locale/programs/locarchive.c (show_archive_content): Fix sizeof
[glibc/pb-stable.git]
/
nptl
/
tst-robust3.c
blob
e56f2762c7046d590892c9caabfb274582b8ef92
1
#include <time.h>
2
#include <sys/time.h>
3
4
5
static struct
timespec tmo
;
6
7
8
#define PREPARE_TMO \
9
do { \
10
struct timeval tv; \
11
gettimeofday (&tv, NULL); \
12
\
13
/* Define the timeout as one hour in the future. */
\
14
tmo.tv_sec = tv.tv_sec + 3600; \
15
tmo.tv_nsec = 0; \
16
} while (0)
17
18
19
#define LOCK(m) pthread_mutex_timedlock (m, &tmo)
20
#include
"tst-robust1.c"