From a2a00d4ba8d16838e613cbecfad98cb188929e14 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 9 Feb 2014 00:40:11 +0000 Subject: 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/posix_mq/extconf.rb') diff --git a/ext/posix_mq/extconf.rb b/ext/posix_mq/extconf.rb index db50ee3..eb799b2 100644 --- a/ext/posix_mq/extconf.rb +++ b/ext/posix_mq/extconf.rb @@ -6,6 +6,7 @@ have_header("mqueue.h") or abort "mqueue.h header missing" have_header("pthread.h") have_func("rb_str_set_len") have_func('rb_thread_blocking_region') +have_func('rb_thread_call_without_gvl') have_library("m") have_library("rt") have_library("pthread") -- cgit v1.2.3-24-ge0c7