1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Provide nanosleep() equivalent for windows.

This commit is contained in:
Con Kolivas 2012-01-22 01:40:29 +11:00
parent dd45970813
commit 2d5bbc7756

View File

@ -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 {