search for: rb_thread_yield

Displaying 2 results from an estimated 2 matches for "rb_thread_yield".

2008 Jun 12
4
Background thread - entension code - switch contexts
Hi, I am using wxRuby 1.9.7 and Ruby 1.8.6. I have built an extension in C++ and used swig to load it into Ruby interpreter, which works great. The extension is an often long executing algorithm, and I''ve noticed that if I fork a new Ruby thread in button clicked event, and in this thread run the algorithm the application freezes for the time of execution. I have looked through the
2006 Sep 13
7
Mongrel spewing backtraces and nanosleeping
...ib/libruby18.so.18 #12 0x280a4c5d in rb_call () from /usr/local/lib/libruby18.so.18 #13 0x2809f369 in rb_eval () from /usr/local/lib/libruby18.so.18 #14 0x2809e275 in rb_eval () from /usr/local/lib/libruby18.so.18 #15 0x280a2444 in rb_yield_0 () from /usr/local/lib/libruby18.so.18 #16 0x280ae89f in rb_thread_yield () from /usr/local/lib/libruby18.so.18 #17 0x280ae5ed in rb_thread_start_0 () from /usr/local/lib/libruby18.so.18 #18 0x280ae9a7 in rb_thread_initialize () from /usr/local/lib/libruby18.so.18 #19 0x280a4098 in rb_call0 () from /usr/local/lib/libruby18.so.18 #20 0x280a4c5d in rb_call () from /usr/lo...