From bb022bed3a0e20b6fee92ad8910d1e0651c43f18 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 23 Feb 2007 09:33:53 +0000 Subject: * thread.c (rb_thread_polling): check interrupts here. * thread_win32.ci (w32_wait_events): rename from w32_wait_event(), and now receive multiple event handles. * win32/win32.c (wait_events, rb_w32_main_context): removed. * thread_win32.ci (rb_w32_wait_events): new function. * thread_win32.ci, win32/win32.c (rb_w32_sleep, rb_w32_Sleep): move from win32/win32.c to thread_win32.ci, and use w32_wait_events(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'thread.c') diff --git a/thread.c b/thread.c index d206e58afc..e2e5cef48a 100644 --- a/thread.c +++ b/thread.c @@ -546,6 +546,7 @@ rb_thread_wait_for(struct timeval time) void rb_thread_polling(void) { + RUBY_VM_CHECK_INTS(); if (!rb_thread_alone()) { rb_thread_t *th = GET_THREAD(); sleep_for_polling(th); -- cgit v1.2.3