aboutsummaryrefslogtreecommitdiff
path: root/lib/libc_r
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-06-06 07:20:23 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-06-06 07:20:23 +0000
commitc359f976b44cc388e748b77277707536e2732d9d (patch)
treed6a6008260fb4ee5ced3a0ff2dc81b1d7684ead6 /lib/libc_r
parentf24f28e28c1acbe93b41e72950199847735c1175 (diff)
downloadsrc-c359f976b44cc388e748b77277707536e2732d9d.tar.gz
src-c359f976b44cc388e748b77277707536e2732d9d.zip
Re-design the thread specific key structure.
Notes
Notes: svn path=/head/; revision=36696
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/uthread/pthread_private.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc_r/uthread/pthread_private.h b/lib/libc_r/uthread/pthread_private.h
index 5f0f3a8fd3be..f1a571007bc3 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) ();
};