mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
Zero all pthread_t identities upon cancelling threads.
This commit is contained in:
parent
acf88e0da4
commit
13c40f753b
7
util.c
7
util.c
@ -680,8 +680,11 @@ void thr_info_cancel(struct thr_info *thr)
|
|||||||
|
|
||||||
if (thr->q)
|
if (thr->q)
|
||||||
tq_freeze(thr->q);
|
tq_freeze(thr->q);
|
||||||
if (pthread_cancel(thr->pth))
|
if (thr->pth) {
|
||||||
pthread_join(thr->pth, NULL);
|
if (pthread_cancel(thr->pth))
|
||||||
|
pthread_join(thr->pth, NULL);
|
||||||
|
thr->pth = 0L;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool get_dondata(char **url, char **userpass)
|
bool get_dondata(char **url, char **userpass)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user