Skip to contentSkip to conversation

Remove unneeded pthread_cond_broadcast

PATCH In review Andy Grover 2 participants 2 messages Apr 30, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unneeded pthread_cond_broadcast

Previous patchset neglected to remove a now unneeded call.

---
 usr/bs.c | 2 --
 1 file changed, 2 deletions(-)
usr/bs.c +0 -2
index 1ab86f7..a6b0b57 100644
@@ -448,8 +448,6 @@ void bs_thread_close(struct bs_thread_info *info)
 {
 	int i;
 
-	pthread_cond_broadcast(&info->pending_cond);
-
 	for (i = 0; i < info->nr_worker_threads && info->worker_thread[i]; i++) {
 		pthread_cancel(info->worker_thread[i]);
 		pthread_join(info->worker_thread[i], NULL);
Signature · 1 line
1.9.0