diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-04-05 02:47:04 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-04-05 02:47:04 +0000 |
commit | f5774348b6fe5bb7e86717629fdb8c4d8c30731f (patch) | |
tree | f1c57b2a836fced43d6761971de665c9e1d745dd /extconf.rb | |
parent | 92e549dfb5f19125f4b6131937b738eee5b046c7 (diff) | |
download | mahoro-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.rb | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |