mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 15:27:53 +00:00
Must unlock mutex within loop.
This commit is contained in:
parent
85bddde1c0
commit
84064a2b1e
@ -4028,9 +4028,9 @@ 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…
Reference in New Issue
Block a user