diff options
| author | 2005-12-18 01:35:06 +0000 | |
|---|---|---|
| committer | 2005-12-18 01:35:06 +0000 | |
| commit | c46380de65ed5089fea4a19cd9797ce5f1e47f1c (patch) | |
| tree | 9b357adb9c82e4478196c4862d2ee76b7ce17ec0 /lib/librthread/rthread_tls.c | |
| parent | if not a newer chip then print i82557, all fxp's attached to the ICH (diff) | |
| download | wireguard-openbsd-c46380de65ed5089fea4a19cd9797ce5f1e47f1c.tar.xz wireguard-openbsd-c46380de65ed5089fea4a19cd9797ce5f1e47f1c.zip | |
initialize all spinlocks to _SPINLOCK_UNLOCKED
Diffstat (limited to 'lib/librthread/rthread_tls.c')
| -rw-r--r-- | lib/librthread/rthread_tls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/rthread_tls.c b/lib/librthread/rthread_tls.c index 05311c11d7e..4adbbcb6c54 100644 --- a/lib/librthread/rthread_tls.c +++ b/lib/librthread/rthread_tls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread_tls.c,v 1.5 2005/12/14 05:42:07 tedu Exp $ */ +/* $OpenBSD: rthread_tls.c,v 1.6 2005/12/18 01:35:06 tedu Exp $ */ /* * Copyright (c) 2004 Ted Unangst <tedu@openbsd.org> * All Rights Reserved. @@ -37,7 +37,7 @@ #include "rthread.h" static struct rthread_key rkeys[PTHREAD_KEYS_MAX]; -static _spinlock_lock_t rkeyslock; +static _spinlock_lock_t rkeyslock = _SPINLOCK_UNLOCKED; int pthread_key_create(pthread_key_t *key, void (*destructor)(void*)) |
