mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-07 04:24:22 +00:00
Revert "thread shutdown is different on windows"
This reverts commit 1bb2cadfa6a319ac889d63af519df2ee858807ce.
This commit is contained in:
parent
47a98cde9f
commit
0e7fd54c0f
@ -3315,13 +3315,8 @@ static void kill_mining(void)
|
|||||||
if (thr && PTH(thr) != 0L)
|
if (thr && PTH(thr) != 0L)
|
||||||
pth = &thr->pth;
|
pth = &thr->pth;
|
||||||
thr_info_cancel(thr);
|
thr_info_cancel(thr);
|
||||||
#ifndef WIN32
|
|
||||||
if (pth && *pth)
|
if (pth && *pth)
|
||||||
pthread_join(*pth, NULL);
|
pthread_join(*pth, NULL);
|
||||||
#else
|
|
||||||
if (pth && pth->p)
|
|
||||||
pthread_join(*pth, NULL);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user