about summary refs log tree commit homepage
path: root/extconf.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-04-05 02:47:04 +0000
committerEric Wong <normalperson@yhbt.net>2013-04-05 02:47:04 +0000
commitf5774348b6fe5bb7e86717629fdb8c4d8c30731f (patch)
treef1c57b2a836fced43d6761971de665c9e1d745dd /extconf.rb
parent92e549dfb5f19125f4b6131937b738eee5b046c7 (diff)
downloadmahoro-f5774348b6fe5bb7e86717629fdb8c4d8c30731f.tar.gz
release GVL if filesystem I/O is required
Filesystem I/O has unpredictable latency, release the GVL
in these cases since we will never know how long it lasts.
We enable interrupt processing since we may be operating
on FIFOs.

(Matz) Ruby 1.9 and 2.0 releases GVL for all file system
operations, too.
Diffstat (limited to 'extconf.rb')
-rw-r--r--extconf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/extconf.rb b/extconf.rb
index 026b6c3..0709016 100644
--- a/extconf.rb
+++ b/extconf.rb
@@ -2,6 +2,8 @@ require 'mkmf'
 
 dir_config('magic')
 have_library('magic', 'magic_open')
+have_func('rb_thread_call_without_gvl')
+have_func('rb_thread_blocking_region')
 create_makefile('mahoro')
 
 # arch-tag: extconf