summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread
diff options
context:
space:
mode:
authord <d@openbsd.org>2000-01-06 07:19:35 +0000
committerd <d@openbsd.org>2000-01-06 07:19:35 +0000
commit6e517ff8ac483ac78bd943b81b6d83465c13e689 (patch)
treed88c95781d0a9a60c821a558d10097c81058de84 /lib/libpthread/uthread
parentSPINLOCK_INIT, volatile (diff)
downloadwireguard-openbsd-6e517ff8ac483ac78bd943b81b6d83465c13e689.tar.xz
wireguard-openbsd-6e517ff8ac483ac78bd943b81b6d83465c13e689.zip
oops
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r--lib/libpthread/uthread/uthread_mutex.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libpthread/uthread/uthread_mutex.c b/lib/libpthread/uthread/uthread_mutex.c
index 88ce0ee6200..782808b5831 100644
--- a/lib/libpthread/uthread/uthread_mutex.c
+++ b/lib/libpthread/uthread/uthread_mutex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_mutex.c,v 1.10 2000/01/06 07:18:46 d Exp $ */
+/* $OpenBSD: uthread_mutex.c,v 1.11 2000/01/06 07:19:35 d Exp $ */
/*
* Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>.
* All rights reserved.
@@ -1354,8 +1354,7 @@ mutex_queue_enq(pthread_mutex_t mutex, pthread_t pthread)
* at the tail of the queue.
*/
if ((tid == NULL) || (pthread->active_priority <= tid->active_priority))
- TAILQ_INSERT_TAIL(&mutex->m_queue, pthread, qe);
- /* (pthread)->qe.tqe_prev = ((&mutex->m_queue))->tqh_last; */
+ TAILQ_INSERT_TAIL(&mutex->m_queue, pthread, qe);
else {
tid = TAILQ_FIRST(&mutex->m_queue);
while (pthread->active_priority <= tid->active_priority)