summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2019-10-21 10:04:19 +0000
committermpi <mpi@openbsd.org>2019-10-21 10:04:19 +0000
commit7268b626954e8800e2f2bb9eb6f527afbf37ff01 (patch)
tree2c9325d1f55ab6235f428c9369f178bbd4e0d10a /lib/libc
parentMark recycled USB `xfer' as NOT_STARTED to not confuse HCD abort methods. (diff)
downloadwireguard-openbsd-7268b626954e8800e2f2bb9eb6f527afbf37ff01.tar.xz
wireguard-openbsd-7268b626954e8800e2f2bb9eb6f527afbf37ff01.zip
Kill unused _wait() function.
ok visa@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/thread/synch.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/libc/thread/synch.h b/lib/libc/thread/synch.h
index 242e579f323..788890add89 100644
--- a/lib/libc/thread/synch.h
+++ b/lib/libc/thread/synch.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: synch.h,v 1.3 2018/06/04 22:08:56 kettenis Exp $ */
+/* $OpenBSD: synch.h,v 1.4 2019/10/21 10:04:19 mpi Exp $ */
/*
* Copyright (c) 2017 Martin Pieuchot
*
@@ -25,13 +25,6 @@ _wake(volatile uint32_t *p, int n)
return futex(p, FUTEX_WAKE_PRIVATE, n, NULL, NULL);
}
-static inline void
-_wait(volatile uint32_t *p, int val)
-{
- while (*p != (uint32_t)val)
- futex(p, FUTEX_WAIT_PRIVATE, val, NULL, NULL);
-}
-
static inline int
_twait(volatile uint32_t *p, int val, clockid_t clockid, const struct timespec *abs)
{