RTEMS 4.5.1-pre3 On-Line Library
Mutex Manager pthread_mutex_timedlock - Lock a Mutex with Timeout
RTEMS POSIX API User's Guide
10.4.13: pthread_mutex_timedlock - Lock a Mutex with Timeout
CALLING SEQUENCE:
-
#include <pthread.h>
#include <time.h>
int pthread_mutex_timedlock(
pthread_mutex_t *mutex,
const struct timespec *timeout
);
STATUS CODES:
- EINVAL
-
The specified mutex is invalid.
- EINVAL
-
The nanoseconds field of timeout is invalid.
- EINVAL
-
The mutex has the protocol attribute of PTHREAD_PRIO_PROTECT and the
priority of the calling thread is higher than the current priority
ceiling.
- EDEADLK
-
The current thread already owns the mutex.
DESCRIPTION:
NOTES:
RTEMS POSIX API User's Guide
Copyright © 1988-2000 OAR Corporation