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. --- c/src/exec/posix/include/rtems/posix/mutex.h | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'c/src/exec/posix/include/rtems/posix/mutex.h') diff --git a/c/src/exec/posix/include/rtems/posix/mutex.h b/c/src/exec/posix/include/rtems/posix/mutex.h index b0d9526dd5..4f242db1bc 100644 --- a/c/src/exec/posix/include/rtems/posix/mutex.h +++ b/c/src/exec/posix/include/rtems/posix/mutex.h @@ -40,6 +40,12 @@ typedef struct { */ POSIX_EXTERN Objects_Information _POSIX_Mutex_Information; + +/* + * The default mutex attributes structure. + */ + +extern const pthread_mutexattr_t _POSIX_Mutex_Default_attributes; /* * _POSIX_Mutex_Manager_initialization @@ -108,6 +114,35 @@ RTEMS_INLINE_ROUTINE boolean _POSIX_Mutex_Is_null ( POSIX_Mutex_Control *the_mutex ); +/* + * _POSIX_Mutex_Lock_support + * + * DESCRIPTION: + * + * A support routine which implements guts of the blocking, non-blocking, and + * timed wait version of mutex lock. + */ + +int _POSIX_Mutex_Lock_support( + pthread_mutex_t *mutex, + boolean blocking, + Watchdog_Interval timeout +); + +/* + * _POSIX_Mutex_From_core_mutex_status + * + * DESCRIPTION: + * + * A support routine which converts core mutex status codes into the + * appropriate POSIX status values. + */ + +int _POSIX_Mutex_From_core_mutex_status( + CORE_mutex_Status status +); + + #include #if defined(RTEMS_MULTIPROCESSING) #include -- cgit v1.2.3