summaryrefslogtreecommitdiffstats
path: root/lib/librthread/rthread_stack.c
diff options
context:
space:
mode:
authorakfaew <akfaew@openbsd.org>2016-09-04 10:13:35 +0000
committerakfaew <akfaew@openbsd.org>2016-09-04 10:13:35 +0000
commitf050dd8302aabb2221ecad9aa1c9cb7245992cb8 (patch)
treecc0b4567bbdd55f7899116a39a1a3c94546965ea /lib/librthread/rthread_stack.c
parentA few bits of stray leading/embedded/trailing whitespace spotted while (diff)
downloadwireguard-openbsd-f050dd8302aabb2221ecad9aa1c9cb7245992cb8.tar.xz
wireguard-openbsd-f050dd8302aabb2221ecad9aa1c9cb7245992cb8.zip
Get rid of ticket support, replace "struct _spinlock" with "_atomic_lock_t".
ok tedu@
Diffstat (limited to 'lib/librthread/rthread_stack.c')
-rw-r--r--lib/librthread/rthread_stack.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/librthread/rthread_stack.c b/lib/librthread/rthread_stack.c
index fadf1fbedae..6d3ab3a9b7b 100644
--- a/lib/librthread/rthread_stack.c
+++ b/lib/librthread/rthread_stack.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_stack.c,v 1.15 2016/09/01 10:56:46 deraadt Exp $ */
+/* $OpenBSD: rthread_stack.c,v 1.16 2016/09/04 10:13:35 akfaew Exp $ */
/* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */
@@ -18,7 +18,7 @@
* attributes for possible reuse.
*/
static SLIST_HEAD(, stack) def_stacks = SLIST_HEAD_INITIALIZER(head);
-static struct _spinlock def_stacks_lock = _SPINLOCK_UNLOCKED;
+static _atomic_lock_t def_stacks_lock = _SPINLOCK_UNLOCKED;
struct stack *
_rthread_alloc_stack(pthread_t thread)
@@ -134,4 +134,3 @@ _rthread_free_stack(struct stack *stack)
free(stack);
}
}
-