Browse Source

Must unlock mutex after waking up on pthread conditional.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
85bddde1c0
  1. 1
      cgminer.c

1
cgminer.c

@ -4029,6 +4029,7 @@ static void wait_lpcurrent(struct pool *pool) @@ -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)

Loading…
Cancel
Save