diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-02 17:19:23 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-02 17:19:23 +0000 |
commit | 96c041c42ba7cf9489113bb337c8dc9b344f152e (patch) | |
tree | bd6b328f8cd3b82963d3b27a05403c6fe11699bb /c/src/exec/posix/include | |
parent | Split mqueue into multiple files. (diff) | |
download | rtems-96c041c42ba7cf9489113bb337c8dc9b344f152e.tar.bz2 |
Split mutex.c into multiple files.
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/posix/include/rtems/posix/mutex.h | 35 |
1 files changed, 35 insertions, 0 deletions
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 <rtems/posix/mutex.inl> #if defined(RTEMS_MULTIPROCESSING) #include <rtems/posix/mutexmp.h> |