diff options
author | jb <jb@FreeBSD.org> | 1998-06-06 07:20:23 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-06-06 07:20:23 +0000 |
commit | 0e04174c22864c80cfad6e467beaeef0503b40ca (patch) | |
tree | bd873c814b84e1d34912cf2e9b56bdc590cc6396 /lib | |
parent | 065357c971e10dfeaca9f8c1a0cf0dc0917598dd (diff) | |
download | FreeBSD-src-0e04174c22864c80cfad6e467beaeef0503b40ca.zip FreeBSD-src-0e04174c22864c80cfad6e467beaeef0503b40ca.tar.gz |
Re-design the thread specific key structure.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc_r/uthread/pthread_private.h | 5 | ||||
-rw-r--r-- | lib/libkse/thread/thr_private.h | 5 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_private.h | 5 |
3 files changed, 6 insertions, 9 deletions
diff --git a/lib/libc_r/uthread/pthread_private.h b/lib/libc_r/uthread/pthread_private.h index 5f0f3a8..f1a5710 100644 --- a/lib/libc_r/uthread/pthread_private.h +++ b/lib/libc_r/uthread/pthread_private.h @@ -217,9 +217,8 @@ struct pthread_attr { #define TIMESLICE_USEC 100000 struct pthread_key { - pthread_mutex_t mutex; - long access_lock; - long count; + volatile long access_lock; + volatile int allocated; void (*destructor) (); }; diff --git a/lib/libkse/thread/thr_private.h b/lib/libkse/thread/thr_private.h index 5f0f3a8..f1a5710 100644 --- a/lib/libkse/thread/thr_private.h +++ b/lib/libkse/thread/thr_private.h @@ -217,9 +217,8 @@ struct pthread_attr { #define TIMESLICE_USEC 100000 struct pthread_key { - pthread_mutex_t mutex; - long access_lock; - long count; + volatile long access_lock; + volatile int allocated; void (*destructor) (); }; diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index 5f0f3a8..f1a5710 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -217,9 +217,8 @@ struct pthread_attr { #define TIMESLICE_USEC 100000 struct pthread_key { - pthread_mutex_t mutex; - long access_lock; - long count; + volatile long access_lock; + volatile int allocated; void (*destructor) (); }; |