Browse Source

Must unlock mutex within loop.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
84064a2b1e
  1. 2
      cgminer.c

2
cgminer.c

@ -4028,8 +4028,8 @@ static void wait_lpcurrent(struct pool *pool)
while (pool != current_pool()) { while (pool != current_pool()) {
mutex_lock(&lp_lock); mutex_lock(&lp_lock);
pthread_cond_wait(&lp_cond, &lp_lock); pthread_cond_wait(&lp_cond, &lp_lock);
mutex_unlock(&lp_lock);
} }
mutex_unlock(&lp_lock);
} }
static void *longpoll_thread(void *userdata) static void *longpoll_thread(void *userdata)

Loading…
Cancel
Save