From: "Wayne E. Seguin" Date: 2007-09-20T23:35:46+09:00 Subject: Re: Do C Extensions Block Ruby? --Apple-Mail-5--609127146 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Sep 19, 2007, at 17:56 , hemant wrote: > You may be aware but you can use rb_thread_schedule() for letting your > Ruby threads run. hemant, Actually... no I wasn't. So if I'm in a C extension and want to let the Ruby continue processing can I do this: - Async Operation - rb_thread_schedule() - Wait in C ext for async operation to complete (note that this C extension is called from within a Ruby thread) and the C ext would not block the other Ruby threads from that point? Thank you very much! ~Wayne s///g Wayne E. Seguin Sr. Systems Architect & Systems Administrator --Apple-Mail-5--609127146--