diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2019-10-21 10:04:20 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2019-10-21 10:04:20 +0000 |
commit | 8d204c560386c18e2c9b396f080809062b063e4e (patch) | |
tree | c2a8d008aa60dde6f3a805dcfb44fad9bfb16d75 /lib/libc | |
parent | 7ee1c72f8a0d6d2f505cc4be048ff12092f1bd4d (diff) |
Kill unused _wait() function.
ok visa@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/thread/synch.h | 9 |
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) { |