From 1bb2cadfa6a319ac889d63af519df2ee858807ce Mon Sep 17 00:00:00 2001 From: Kano Date: Thu, 23 May 2013 21:11:16 +1000 Subject: [PATCH] thread shutdown is different on windows --- cgminer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cgminer.c b/cgminer.c index 6ec095ea..07cd7d08 100644 --- a/cgminer.c +++ b/cgminer.c @@ -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");