diff options
author | Eric Wong <normalperson@yhbt.net> | 2014-02-09 00:40:11 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2014-02-09 00:40:11 +0000 |
commit | a2a00d4ba8d16838e613cbecfad98cb188929e14 (patch) | |
tree | 2476ed27ac0c558499461bf17cdc6eeadf44f4be /ext/posix_mq/extconf.rb | |
parent | 5f620f4435afcdc2304f53c74ff8b65fc4f04b0d (diff) | |
download | ruby_posix_mq-a2a00d4ba8d16838e613cbecfad98cb188929e14.tar.gz |
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
Diffstat (limited to 'ext/posix_mq/extconf.rb')
-rw-r--r-- | ext/posix_mq/extconf.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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") |