summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread.h
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2005-12-14 04:01:45 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2005-12-14 04:01:45 +0000
commit0f6755503e756f87fe75b6ace4596d4a9fc3d33d (patch)
treecb9a60f2b26ee457591092ea4bc6cb04b39779c5 /lib/librthread/rthread.h
parentcd51fc7a4da29f9239d2a4d77eae12364e7fe16f (diff)
change keys to use table instead of list, makes a sane destructor implementation
possible
Diffstat (limited to 'lib/librthread/rthread.h')
-rw-r--r--lib/librthread/rthread.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/librthread/rthread.h b/lib/librthread/rthread.h
index beceb9b5543..ea5a83ae701 100644
--- a/lib/librthread/rthread.h
+++ b/lib/librthread/rthread.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread.h,v 1.3 2005/12/13 17:22:46 tedu Exp $ */
+/* $OpenBSD: rthread.h,v 1.4 2005/12/14 04:01:44 tedu Exp $ */
/*
* Copyright (c) 2004 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -73,8 +73,7 @@ struct pthread_attr {
};
struct rthread_key {
- int keyid;
- struct rthread_key *next;
+ int used;
void (*destructor)(void *);
};
@@ -110,4 +109,6 @@ int _sem_post(sem_t);
int _sem_wakeup(sem_t);
int _sem_wakeall(sem_t);
+void rthread_tls_destructors(pthread_t);
+
int _atomic_lock(register volatile _spinlock_lock_t *);