Your c block needs to be within rb_thread_blocking_region to not block 
the (UI responding) ruby threads, I'm thinking.

ref: 
http://en.wikibooks.org/wiki/Ruby_Programming/Reference/Objects/Thread#Thread

-- 
Posted via http://www.ruby-forum.com/.