diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-07-01 16:58:28 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-07-01 16:58:28 +0000 |
commit | a8e5dc01e5e4b24bc3a6fb09ed579269ab682350 (patch) | |
tree | 54ac23b7c71457f6134ad86c81e7c77f4340d556 /include/pthread.h | |
parent | 6292928a6da63255f209d8bdf88d6896b4386de2 (diff) |
Patch from Ronald Wahl <rwa@peppercon.com> -- kill references to
the obsolete PTHREAD_MUTEX_FAST_NP, and change the default mutex
type to adaptive
Diffstat (limited to 'include/pthread.h')
-rw-r--r-- | include/pthread.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/pthread.h b/include/pthread.h index 08a338b9a..0f7f50e10 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -31,7 +31,7 @@ __BEGIN_DECLS /* Initializers. */ #define PTHREAD_MUTEX_INITIALIZER \ - {0, 0, 0, PTHREAD_MUTEX_TIMED_NP, __LOCK_INITIALIZER} + {0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, __LOCK_INITIALIZER} #ifdef __USE_GNU # define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \ {0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, __LOCK_INITIALIZER} @@ -82,13 +82,13 @@ enum enum { - PTHREAD_MUTEX_TIMED_NP, + PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_MUTEX_RECURSIVE_NP, PTHREAD_MUTEX_ERRORCHECK_NP, - PTHREAD_MUTEX_ADAPTIVE_NP + PTHREAD_MUTEX_TIMED_NP #ifdef __USE_UNIX98 , - PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, + PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_ADAPTIVE_NP, PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL |