summaryrefslogtreecommitdiffstats
path: root/lib/librthread/rthread_fork.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_fork.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_fork.c')
-rw-r--r--lib/librthread/rthread_fork.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/librthread/rthread_fork.c b/lib/librthread/rthread_fork.c
index cc9f3d1d2fe..59d61b53e83 100644
--- a/lib/librthread/rthread_fork.c
+++ b/lib/librthread/rthread_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_fork.c,v 1.18 2016/09/01 10:41:02 otto Exp $ */
+/* $OpenBSD: rthread_fork.c,v 1.19 2016/09/04 10:13:35 akfaew Exp $ */
/*
* Copyright (c) 2008 Kurt Miller <kurt@openbsd.org>
@@ -100,13 +100,13 @@ _dofork(pid_t (*sys_fork)(void))
#endif
/* update this thread's structure */
tib->tib_tid = getthrid();
- me->donesem.lock = _SPINLOCK_UNLOCKED_ASSIGN;
- me->flags_lock = _SPINLOCK_UNLOCKED_ASSIGN;
+ me->donesem.lock = _SPINLOCK_UNLOCKED;
+ me->flags_lock = _SPINLOCK_UNLOCKED;
/* reinit the thread list */
LIST_INIT(&_thread_list);
LIST_INSERT_HEAD(&_thread_list, me, threads);
- _thread_lock = _SPINLOCK_UNLOCKED_ASSIGN;
+ _thread_lock = _SPINLOCK_UNLOCKED;
/* single threaded now */
__isthreaded = 0;