function rb_thread_value

static VALUE rb_thread_value(VALUE thread)