mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02:00
merge from trunk (r27718)
* win32/win32.c, include/ruby/win32.h (rb_w32_has_cancel_io): new function. * io.c (WAIT_FD_IN_WIN32): check only when it's not cancelable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5b2c631d31
commit
52583c34d1
4 changed files with 17 additions and 2 deletions
|
@ -548,6 +548,12 @@ init_env(void)
|
|||
typedef BOOL (WINAPI *cancel_io_t)(HANDLE);
|
||||
static cancel_io_t cancel_io = NULL;
|
||||
|
||||
int
|
||||
rb_w32_has_cancel_io(void)
|
||||
{
|
||||
return cancel_io != NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
init_func(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue