Use rb_thread_select instead of rb_thread_schedule