From 0e04174c22864c80cfad6e467beaeef0503b40ca Mon Sep 17 00:00:00 2001 From: jb Date: Sat, 6 Jun 1998 07:20:23 +0000 Subject: Re-design the thread specific key structure. --- lib/libpthread/thread/thr_private.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/libpthread/thread/thr_private.h') 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) (); }; -- cgit v1.1