diff options
author | hsu <hsu@FreeBSD.org> | 1996-11-11 09:07:05 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 1996-11-11 09:07:05 +0000 |
commit | fae58f5f6280bc3bc81efdecc2ea81c609176c58 (patch) | |
tree | d8963485580e49eb2cf5010f18cef9a360e29a58 /lib/libkse | |
parent | d1d957f50c1408ea2fee4485be9a8aeab671794c (diff) | |
download | FreeBSD-src-fae58f5f6280bc3bc81efdecc2ea81c609176c58.zip FreeBSD-src-fae58f5f6280bc3bc81efdecc2ea81c609176c58.tar.gz |
Moved enum pthread_mutextype to pthread.h.
Add pthread_mutexattr_default definition.
Diffstat (limited to 'lib/libkse')
-rw-r--r-- | lib/libkse/thread/thr_private.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/libkse/thread/thr_private.h b/lib/libkse/thread/thr_private.h index 48e70ce..a16bdea 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 |