kgio.git  about / heads / tags
kinder, gentler I/O for Ruby
blob db76eac8bb6251ae4ec7f71b38f6c5bc757de7b6 539 bytes (raw)
$ git show v2.9.3:ext/kgio/blocking_io_region.h	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
#ifdef KGIO_WITHOUT_GVL
#  if   defined(HAVE_RB_THREAD_IO_BLOCKING_REGION)
/* temporary API for Ruby 1.9.3 */
VALUE rb_thread_io_blocking_region(rb_blocking_function_t *, void *, int);
#  elif defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL)
#    define rb_thread_io_blocking_region(fn,data,fd) \
            rb_thread_call_without_gvl((fn),(data),RUBY_UBF_IO,0)
#  elif defined(HAVE_RB_THREAD_BLOCKING_REGION)
#    define rb_thread_io_blocking_region(fn,data,fd) \
            rb_thread_blocking_region((fn),(data),RUBY_UBF_IO,0)
#  endif
#endif

git clone git://yhbt.net/kgio.git
git clone https://yhbt.net/kgio.git