summaryrefslogtreecommitdiffstats
path: root/lib/libkse
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-06-06 07:20:23 +0000
committerjb <jb@FreeBSD.org>1998-06-06 07:20:23 +0000
commit0e04174c22864c80cfad6e467beaeef0503b40ca (patch)
treebd873c814b84e1d34912cf2e9b56bdc590cc6396 /lib/libkse
parent065357c971e10dfeaca9f8c1a0cf0dc0917598dd (diff)
downloadFreeBSD-src-0e04174c22864c80cfad6e467beaeef0503b40ca.zip
FreeBSD-src-0e04174c22864c80cfad6e467beaeef0503b40ca.tar.gz
Re-design the thread specific key structure.
Diffstat (limited to 'lib/libkse')
-rw-r--r--lib/libkse/thread/thr_private.h5
1 files changed, 2 insertions, 3 deletions
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) ();
};
OpenPOWER on IntegriCloud