Back to index

glibc  2.9
Defines | Variables
tst-robust3.c File Reference
#include <time.h>
#include <sys/time.h>
#include "tst-robust1.c"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define LOCK(m)   pthread_mutex_timedlock (m, &tmo)


static struct timespec

Define Documentation

#define LOCK (   m)    pthread_mutex_timedlock (m, &tmo)

Definition at line 19 of file tst-robust3.c.

do {                                                                 \
    struct timeval tv;                                                      \
    gettimeofday (&tv, NULL);                                               \
    /* Define the timeout as one hour in the future.  */                    \
    tmo.tv_sec = tv.tv_sec + 3600;                                   \
    tmo.tv_nsec = 0;                                                 \
  } while (0)

Definition at line 8 of file tst-robust3.c.

Variable Documentation

struct timespec [static]

Definition at line 5 of file tst-robust3.c.