1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-08 22:08:02 +00:00

thread shutdown is different on windows

This commit is contained in:
Kano 2013-05-23 21:11:16 +10:00
parent ab080fa681
commit 1bb2cadfa6

View File

@ -2819,8 +2819,13 @@ static void __kill_work(void)
if (thr && PTH(thr) != 0L)
pth = &thr->pth;
thr_info_cancel(thr);
#ifndef WIN32
if (pth && *pth)
pthread_join(*pth, NULL);
#else
if (pth && pth->p)
pthread_join(*pth, NULL);
#endif
}
applog(LOG_DEBUG, "Killing off stage thread");