From 509de77c105184a65427579c19a1c0affd4a3ecf Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Mon, 11 Nov 1996 09:07:05 +0000 Subject: [PATCH] Moved enum pthread_mutextype to pthread.h. Add pthread_mutexattr_default definition. --- lib/libc_r/uthread/pthread_private.h | 14 ++++++++------ lib/libkse/thread/thr_private.h | 14 ++++++++------ lib/libpthread/thread/thr_private.h | 14 ++++++++------ 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/lib/libc_r/uthread/pthread_private.h b/lib/libc_r/uthread/pthread_private.h index 48e70ce00d1e..a16bdea0387e 100644 --- a/lib/libc_r/uthread/pthread_private.h +++ b/lib/libc_r/uthread/pthread_private.h @@ -75,12 +75,6 @@ struct pthread_queue { /* * Mutex definitions. */ -enum pthread_mutextype { - MUTEX_TYPE_FAST = 1, - MUTEX_TYPE_COUNTING_FAST = 2, /* Recursive */ - MUTEX_TYPE_MAX -}; - union pthread_mutex_data { void *m_ptr; int m_count; @@ -511,6 +505,14 @@ SCLASS struct pthread_attr pthread_attr_default ; #endif +/* Default thread attributes: */ +SCLASS struct pthread_mutex_attr pthread_mutexattr_default +#ifdef GLOBAL_PTHREAD_PRIVATE += { MUTEX_TYPE_FAST, 0 }; +#else +; +#endif + /* File table information: */ SCLASS struct fd_table_entry **_thread_fd_table #ifdef GLOBAL_PTHREAD_PRIVATE diff --git a/lib/libkse/thread/thr_private.h b/lib/libkse/thread/thr_private.h index 48e70ce00d1e..a16bdea0387e 100644 --- a/lib/libkse/thread/thr_private.h +++ b/lib/libkse/thread/thr_private.h @@ -75,12 +75,6 @@ struct pthread_queue { /* * Mutex definitions. */ -enum pthread_mutextype { - MUTEX_TYPE_FAST = 1, - MUTEX_TYPE_COUNTING_FAST = 2, /* Recursive */ - MUTEX_TYPE_MAX -}; - union pthread_mutex_data { void *m_ptr; int m_count; @@ -511,6 +505,14 @@ SCLASS struct pthread_attr pthread_attr_default ; #endif +/* Default thread attributes: */ +SCLASS struct pthread_mutex_attr pthread_mutexattr_default +#ifdef GLOBAL_PTHREAD_PRIVATE += { MUTEX_TYPE_FAST, 0 }; +#else +; +#endif + /* File table information: */ SCLASS struct fd_table_entry **_thread_fd_table #ifdef GLOBAL_PTHREAD_PRIVATE diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index 48e70ce00d1e..a16bdea0387e 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -75,12 +75,6 @@ struct pthread_queue { /* * Mutex definitions. */ -enum pthread_mutextype { - MUTEX_TYPE_FAST = 1, - MUTEX_TYPE_COUNTING_FAST = 2, /* Recursive */ - MUTEX_TYPE_MAX -}; - union pthread_mutex_data { void *m_ptr; int m_count; @@ -511,6 +505,14 @@ SCLASS struct pthread_attr pthread_attr_default ; #endif +/* Default thread attributes: */ +SCLASS struct pthread_mutex_attr pthread_mutexattr_default +#ifdef GLOBAL_PTHREAD_PRIVATE += { MUTEX_TYPE_FAST, 0 }; +#else +; +#endif + /* File table information: */ SCLASS struct fd_table_entry **_thread_fd_table #ifdef GLOBAL_PTHREAD_PRIVATE