source: rtems/c/src/exec/posix/src/mutexlock.c @ 96c041c

4.104.114.84.95
Last change on this file since 96c041c was 96c041c, checked in by Joel Sherrill <joel.sherrill@…>, on 11/02/99 at 17:19:23

Split mutex.c into multiple files.

  • Property mode set to 100644
File size: 637 bytes
Line 
1/*
2 *  $Id$
3 */
4
5#include <assert.h>
6#include <errno.h>
7#include <pthread.h>
8
9#include <rtems/system.h>
10#include <rtems/score/coremutex.h>
11#include <rtems/score/watchdog.h>
12#if defined(RTEMS_MULTIPROCESSING)
13#include <rtems/score/mpci.h>
14#endif
15#include <rtems/posix/mutex.h>
16#include <rtems/posix/priority.h>
17#include <rtems/posix/time.h>
18
19/*PAGE
20 *
21 *  11.3.3 Locking and Unlocking a Mutex, P1003.1c/Draft 10, p. 93
22 *       
23 *  NOTE: P1003.4b/D8 adds pthread_mutex_timedlock(), p. 29
24 */
25
26int pthread_mutex_lock(
27  pthread_mutex_t           *mutex
28)
29{
30  return _POSIX_Mutex_Lock_support( mutex, TRUE, THREAD_QUEUE_WAIT_FOREVER );
31}
Note: See TracBrowser for help on using the repository browser.