diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-28 12:46:58 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-28 12:46:58 +0000 |
commit | 3c8dca55c43b78c0564ad0ff93d67587a7a64bf8 (patch) | |
tree | 93cd95d1ba96fc03cc3e38f66df3c4964ca8d6b6 /thread_win32.c | |
parent | cf6334e1cb91bfee0f95e5ae7ea9c4a72df1f6c2 (diff) |
* win32/win32.c, include/ruby/win32.h (rb_w32_open): overlapped file
I/O support.
* win32/win32.c, include/ruby/win32.h (rb_w32_pipe): overlapped pipe
I/O support.
* wn32/win32.c (rb_w32_read, rb_w32_write): overlapped I/O support to
enable canceling I/O.
* thread_win32.c (ubf_handle): remove workaround.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r-- | thread_win32.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/thread_win32.c b/thread_win32.c index eaff139be9..46780d8ff4 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -524,18 +524,9 @@ static void ubf_handle(void *ptr) { typedef BOOL (WINAPI *cancel_io_func_t)(HANDLE); - static cancel_io_func_t cancel_func = NULL; rb_thread_t *th = (rb_thread_t *)ptr; thread_debug("ubf_handle: %p\n", th); - if (!cancel_func) { - cancel_func = (cancel_io_func_t)GetProcAddress(GetModuleHandle("kernel32"), "CancelSynchronousIo"); - if (!cancel_func) - cancel_func = (cancel_io_func_t)-1; - } - if (cancel_func != (cancel_io_func_t)-1) - cancel_func((HANDLE)th->thread_id); - w32_set_event(th->native_thread_data.interrupt_event); } |