Commit 85bddde1c02a57d7c1a06b9fe831b2e1c320f2ca

Con Kolivas 2012-05-31T19:20:40

Must unlock mutex after waking up on pthread conditional.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cgminer.c b/cgminer.c
index b71edc0..ea04424 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4029,6 +4029,7 @@ static void wait_lpcurrent(struct pool *pool)
 		mutex_lock(&lp_lock);
 		pthread_cond_wait(&lp_cond, &lp_lock);
 	}
+	mutex_unlock(&lp_lock);
 }
 
 static void *longpoll_thread(void *userdata)