From 85bddde1c02a57d7c1a06b9fe831b2e1c320f2ca Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 31 May 2012 19:20:40 +1000 Subject: [PATCH] Must unlock mutex after waking up on pthread conditional. --- cgminer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cgminer.c b/cgminer.c index b71edc06..ea04424e 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)