|
|
@ -102,6 +102,10 @@ T* alignup(T* p) |
|
|
|
#else |
|
|
|
#else |
|
|
|
#define MAX_PATH 1024 |
|
|
|
#define MAX_PATH 1024 |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
// As Solaris does not have the MSG_NOSIGNAL flag for send(2) syscall, it is defined as 0
|
|
|
|
|
|
|
|
#ifndef MSG_NOSIGNAL |
|
|
|
|
|
|
|
#define MSG_NOSIGNAL 0 |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
inline void MilliSleep(int64 n) |
|
|
|
inline void MilliSleep(int64 n) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -499,6 +503,10 @@ inline void SetThreadPriority(int nPriority) |
|
|
|
} |
|
|
|
} |
|
|
|
#else |
|
|
|
#else |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// PRIO_MAX is not defined on Solaris
|
|
|
|
|
|
|
|
#ifndef PRIO_MAX |
|
|
|
|
|
|
|
#define PRIO_MAX 20 |
|
|
|
|
|
|
|
#endif |
|
|
|
#define THREAD_PRIORITY_LOWEST PRIO_MAX |
|
|
|
#define THREAD_PRIORITY_LOWEST PRIO_MAX |
|
|
|
#define THREAD_PRIORITY_BELOW_NORMAL 2 |
|
|
|
#define THREAD_PRIORITY_BELOW_NORMAL 2 |
|
|
|
#define THREAD_PRIORITY_NORMAL 0 |
|
|
|
#define THREAD_PRIORITY_NORMAL 0 |
|
|
|