prepare for rb_thread_blocking_region removal
authorEric Wong <normalperson@yhbt.net>
Sun, 9 Feb 2014 00:50:03 +0000 (00:50 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 9 Feb 2014 00:50:03 +0000 (00:50 +0000)
commitc54c38a95572cc1bf9d6a02fdc18500878968932
tree3ec7f16433431ea9ce10b3a3e9a403fa77b29c78
parent806d7c85ac63f50e21a9e6d352f83dc063ce17e8
prepare for rb_thread_blocking_region removal

It'll be OK to use rb_thread_call_without_gvl when
rb_thread_blocking_region is not detectable at all.
We still use rb_thread_blocking_region for Ruby 2.0-2.1 because
rb_thread_call_without_gvl was detectable in 1.9.3, but not
usable as an internal symbol.

ref: https://bugs.ruby-lang.org/issues/9502
ext/io_splice/extconf.rb
ext/io_splice/io_splice_ext.c