1
0
mirror of https://github.com/GOSTSec/cpuminer-gostd synced 2025-01-15 01:00:15 +00:00
cpuminer-gostd/compat.h

25 lines
353 B
C
Raw Normal View History

2015-08-20 08:22:48 +00:00
#ifndef __COMPAT_H__
#define __COMPAT_H__
#ifdef WIN32
#include <windows.h>
static inline void sleep(int secs)
{
Sleep(secs * 1000);
}
enum {
PRIO_PROCESS = 0,
};
static inline int setpriority(int which, int who, int prio)
{
return -!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_IDLE);
}
#endif /* WIN32 */
#endif /* __COMPAT_H__ */