1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-01 18:55:59 +00:00
ccminer/compat.h
2014-04-27 01:26:08 +02:00

25 lines
391 B
C

#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 /*THREAD_PRIORITY_TIME_CRITICAL*/);
}
#endif /* WIN32 */
#endif /* __COMPAT_H__ */