From: Roger Pack Date: 2010-09-29T02:52:23+09:00 Subject: Re: Ruby/DL loaded shared libraries are blocking? > I am using Ruby/DL (dl/import) to load a dynamic library. It seems > that when I call a function of this library from Ruby, it is blocking. > Is it "normal", or am I doing something wrong? Is it possible to make > it non-blocking? Yeah, non blocking (true multi-threading) is considered to introduce complexity so it probably default to non true multi-thread. I know with jruby this is (probably) not the case, and with ffi you can set a method as non blocking, though it appears to have an annoying syntax, and would only be non-blocking with MRI 1.9+: http://groups.google.com/group/ruby-ffi/browse_thread/thread/26440665daf6b519/8f3d9e93fc1025ca?lnk=gst&q=rb_thread_blocking_region#8f3d9e93fc1025ca -r -- Posted via http://www.ruby-forum.com/.