From 96c041c42ba7cf9489113bb337c8dc9b344f152e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 2 Nov 1999 17:19:23 +0000 Subject: Split mutex.c into multiple files. --- cpukit/posix/src/mutextimedlock.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 cpukit/posix/src/mutextimedlock.c (limited to 'cpukit/posix/src/mutextimedlock.c') diff --git a/cpukit/posix/src/mutextimedlock.c b/cpukit/posix/src/mutextimedlock.c new file mode 100644 index 0000000000..db9f598460 --- /dev/null +++ b/cpukit/posix/src/mutextimedlock.c @@ -0,0 +1,36 @@ +/* + * $Id$ + */ + +#include +#include +#include + +#include +#include +#include +#if defined(RTEMS_MULTIPROCESSING) +#include +#endif +#include +#include +#include + +/*PAGE + * + * 11.3.3 Locking and Unlocking a Mutex, P1003.1c/Draft 10, p. 93 + * + * NOTE: P1003.4b/D8 adds pthread_mutex_timedlock(), p. 29 + */ + +int pthread_mutex_timedlock( + pthread_mutex_t *mutex, + const struct timespec *timeout +) +{ + return _POSIX_Mutex_Lock_support( + mutex, + TRUE, + _POSIX_Timespec_to_interval( timeout ) + ); +} -- cgit v1.2.3