prepare for rb_thread_blocking_region removal
authorEric Wong <normalperson@yhbt.net>
Sun, 9 Feb 2014 00:40:11 +0000 (00:40 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 9 Feb 2014 00:40:11 +0000 (00:40 +0000)
commita2a00d4ba8d16838e613cbecfad98cb188929e14
tree2476ed27ac0c558499461bf17cdc6eeadf44f4be
parent5f620f4435afcdc2304f53c74ff8b65fc4f04b0d
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/posix_mq/extconf.rb
ext/posix_mq/posix_mq.c