Browse Source

Provide nanosleep() equivalent for windows.

Con Kolivas 14 years ago
parent
commit
2d5bbc7756
1 changed files with 4 additions and 0 deletions
  1. 4 0
      miner.h

+ 4 - 0
miner.h

@@ -274,6 +274,10 @@ struct cgpu_info {
 #define PTH(thr) ((thr)->pth)
 #define PTH(thr) ((thr)->pth)
 #else
 #else
 #define PTH(thr) ((thr)->pth.p)
 #define PTH(thr) ((thr)->pth.p)
+static inline void nanosleep(struct timespec *rgtp, void *__unused)
+{
+	Sleep(rgtp->tv_nsec / 1000000);
+}
 #endif
 #endif
 
 
 struct thread_q {
 struct thread_q {