diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2008-11-02 18:27:16 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-03-25 12:47:21 +0000 |
commit | 49fda3c4276d82c0d4609dc96fff826239e137b6 (patch) | |
tree | a6d5e7d2e39c7061e8ee4df1439b21107c9997f7 | |
parent | 579715f830fbbca9e1ecb17dc18176132f5969e7 (diff) |
Cygwin: has problems with constant SIGALRM from the smart scheduler, so disable it for cygwin
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r-- | os/utils.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/os/utils.c b/os/utils.c index 5a5a20374..48f8f5aeb 100644 --- a/os/utils.c +++ b/os/utils.c @@ -125,6 +125,11 @@ __stdcall unsigned long GetTickCount(void); #endif Bool noTestExtensions; + +#if defined(SIGVTALRM) && !defined(__CYGWIN__) +#define SMART_SCHEDULE_POSSIBLE +#endif + #ifdef COMPOSITE Bool noCompositeExtension = FALSE; #endif @@ -536,8 +541,10 @@ void UseMsg(void) ErrorF("+xinerama Enable XINERAMA extension\n"); ErrorF("-xinerama Disable XINERAMA extension\n"); #endif +#ifdef SMART_SCHEDULE_POSSIBLE ErrorF("-dumbSched Disable smart scheduling, enable old behavior\n"); ErrorF("-schedInterval int Set scheduler interval in msec\n"); +#endif ErrorF("+extension name Enable extension\n"); ErrorF("-extension name Disable extension\n"); #ifdef XDMCP @@ -1177,11 +1184,6 @@ XNFstrdup(const char *s) return sd; } - -#ifdef SIGVTALRM -#define SMART_SCHEDULE_POSSIBLE -#endif - #ifdef SMART_SCHEDULE_POSSIBLE #define SMART_SCHEDULE_SIGNAL SIGALRM #define SMART_SCHEDULE_TIMER ITIMER_REAL |