summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread_sync.c
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2012-01-25 06:55:09 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2012-01-25 06:55:09 +0000
commitf559f70883716cde7f8a8adc280fbc7e975debad (patch)
tree108d441b609932926c34fa1b40cde0a93af73134 /lib/librthread/rthread_sync.c
parent3ca365fa2552f0e15224bc786c683df19b487df9 (diff)
@($*& Merging patches resulted in a line being duplicated instead of
moved. Unlocking a spinlock twice is bad, mmkay?
Diffstat (limited to 'lib/librthread/rthread_sync.c')
-rw-r--r--lib/librthread/rthread_sync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/librthread/rthread_sync.c b/lib/librthread/rthread_sync.c
index ae3bdbb40d9..917f700bf8e 100644
--- a/lib/librthread/rthread_sync.c
+++ b/lib/librthread/rthread_sync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_sync.c,v 1.29 2012/01/17 02:34:18 guenther Exp $ */
+/* $OpenBSD: rthread_sync.c,v 1.30 2012/01/25 06:55:08 guenther Exp $ */
/*
* Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org>
* Copyright (c) 2012 Philip Guenther <guenther@openbsd.org>
@@ -581,7 +581,6 @@ pthread_cond_broadcast(pthread_cond_t *condp)
/* 2) fix up the end pointer for the mutex's list */
mutex->lockers.tqh_last = cond->waiters.tqh_last;
- _spinunlock(&mutex->lock);
if (wakeup) {
TAILQ_REMOVE(&mutex->lockers, thread, waiting);