diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-22 04:39:08 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-22 04:39:08 +0000 |
commit | fac7f59b31b8760dcbaf20b147d1ee81f2b26768 (patch) | |
tree | 91542f086868862a06ef600aaa8da413a33417e1 /eval.c | |
parent | 2cc44e7606ad0df1e0c276200e99d1eabafa95ca (diff) |
2000-06-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 20 |
1 files changed, 8 insertions, 12 deletions
@@ -69,14 +69,6 @@ struct timeval { #include <sys/stat.h> -#if !defined HAVE_PAUSE -# if defined _WIN32 && !defined __CYGWIN__ -# define pause() Sleep(INFINITE) -# else -# define pause() sleep(0x7fffffff) -# endif -#endif - VALUE rb_cProc; static VALUE rb_cBinding; static VALUE proc_call _((VALUE,VALUE)); @@ -7254,16 +7246,20 @@ rb_thread_sleep(sec) rb_thread_wait_for(rb_time_timeval(INT2FIX(sec))); } +#if !defined HAVE_PAUSE +# if defined _WIN32 && !defined __CYGWIN__ +# define pause() Sleep(INFINITE) +# else +# define pause() sleep(0x7fffffff) +# endif +#endif + void rb_thread_sleep_forever() { if (curr_thread == curr_thread->next) { TRAP_BEG; -#ifdef HAVE_PAUSE pause(); -#else - sleep((32767<<16)+32767); -#endif TRAP_END; return; } |