mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-03 09:42:17 +00:00
Must unlock mutex after waking up on pthread conditional.
This commit is contained in:
parent
598476cae1
commit
85bddde1c0
@ -4029,6 +4029,7 @@ static void wait_lpcurrent(struct pool *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);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *longpoll_thread(void *userdata)
|
static void *longpoll_thread(void *userdata)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user