int rb_w32_wait_events(HANDLE *events, int num, DWORD timeout) { int ret; BLOCKING_REGION(ret = rb_w32_wait_events_blocking(events, num, timeout), ubf_handle, GET_THREAD()); return ret; }
int rb_w32_wait_events(HANDLE *events, int num, DWORD timeout) { int ret; BLOCKING_REGION(ret = rb_w32_wait_events_blocking(events, num, timeout), ubf_handle, ruby_thread_from_native()); return ret; }