diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-13 09:58:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-13 09:58:57 +0000 |
commit | 246800d42bf1cb6d2031491ebb26c999b19ddeea (patch) | |
tree | 031473b957edcefd47f4108b899ec88b69bf8aa9 /eval.c | |
parent | 937092b8203c373c919a6f307f91e17d4bec5bb1 (diff) | |
download | ruby-246800d42bf1cb6d2031491ebb26c999b19ddeea.tar.gz |
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -7406,6 +7406,14 @@ enum thread_status { /* +infty, for this purpose */ #define DELAY_INFTY 1E30 +#if !defined HAVE_PAUSE +# if defined _WIN32 && !defined __CYGWIN__ +# define pause() Sleep(INFINITE) +# else +# define pause() sleep(0x7fffffff) +# endif +#endif + /* typedef struct thread * rb_thread_t; */ struct thread { @@ -8642,14 +8650,6 @@ 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() { |