Commit 2d5bbc7756d9bbede11ebdf6c6904f7e3dcee7da

Con Kolivas 2012-01-22T01:40:29

Provide nanosleep() equivalent for windows.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/miner.h b/miner.h
index 7393ebd..6092b9c 100644
--- a/miner.h
+++ b/miner.h
@@ -274,6 +274,10 @@ struct cgpu_info {
 #define PTH(thr) ((thr)->pth)
 #else
 #define PTH(thr) ((thr)->pth.p)
+static inline void nanosleep(struct timespec *rgtp, void *__unused)
+{
+	Sleep(rgtp->tv_nsec / 1000000);
+}
 #endif
 
 struct thread_q {