From: hemant Date: 2007-12-08T20:32:55+09:00 Subject: Re: How to have fine grain control over GL in C extensions Hi On Dec 7, 2007 3:40 PM, SASADA Koichi wrote: > > OK. I'll add a C API such as rb_thread_interrupted(void). But you > don't need this API on your example. > Since, I needed this thing rather quickly, i wrote something like this: void check_for_interrupts() { do { if(ruby_current_thread()->interrupt_flag) { rb_thread_execute_interrupts(ruby_current_thread()); } } while(0); } Needless to say, I am just taking code from macros and putting them here. So, next question is, does ruby_current_thread() return rb_thread_struct ? If Yes, I suppose its not exposed. Sorry to bug you, but is there any quick fix?