From f559f70883716cde7f8a8adc280fbc7e975debad Mon Sep 17 00:00:00 2001 From: Philip Guenthe Date: Wed, 25 Jan 2012 06:55:09 +0000 Subject: @($*& Merging patches resulted in a line being duplicated instead of moved. Unlocking a spinlock twice is bad, mmkay? --- lib/librthread/rthread_sync.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') 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 * Copyright (c) 2012 Philip Guenther @@ -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); -- cgit v1.2.3