summaryrefslogtreecommitdiff
path: root/lib/libpthread/pthread_spin.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/pthread_spin.c')
-rw-r--r--lib/libpthread/pthread_spin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/pthread_spin.c b/lib/libpthread/pthread_spin.c
index b9fab4972a1..134ac4b3c32 100644
--- a/lib/libpthread/pthread_spin.c
+++ b/lib/libpthread/pthread_spin.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_spin.c,v 1.10 2022/04/10 10:38:33 riastradh Exp $ */
+/* $NetBSD: pthread_spin.c,v 1.11 2023/05/25 14:30:03 riastradh Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_spin.c,v 1.10 2022/04/10 10:38:33 riastradh Exp $");
+__RCSID("$NetBSD: pthread_spin.c,v 1.11 2023/05/25 14:30:03 riastradh Exp $");
/* Need to use libc-private names for atomic operations. */
#include "../../common/lib/libc/atomic/atomic_op_namespace.h"
@@ -98,7 +98,7 @@ pthread_spin_lock(pthread_spinlock_t *lock)
self = pthread__self();
while (pthread__spintrylock(self, &lock->pts_spin) == 0) {
- pthread__smt_pause();
+ pthread__smt_wait();
}
return 0;