function rb_thread_yield

[edit]
static VALUE rb_thread_yield(VALUE arg, rb_thread_t th)