On Thu, 23 Jun 2011 16:37:44 +0900, Luiz Angelo Daros de Luca wrote:
> Hello guys,
>
> I'm writing a opensync metamodule in order to allow opensync modules
> written in ruby.
> It already exists for python but I am a ruby guy. It is almost
> complete except to the fact
>  that is segfalts :-) I'm using ruby 1.9.1.
>
> Opensync is multithreaded by design. So, my module must accept this 
> behavior.
> I mutexed all ruby access in order to avoid concurrent access of ruby 
> env.

 We've solved this problem, which arised while trying to launch MRI as a 
 thread
 in NodeJS. You can take a look at the code:
 https://github.com/whitequark/coldruby/blob/master/libcoldruby/MRIRubyCompiler.cpp

-- 
   WBR, Peter Zotov.