Пример #1
0
int
rb_thread_alone()
{
    return RARRAY_LEN(rb_vm_threads()) <= 1;
}
Пример #2
0
VALUE
rb_thread_list(VALUE rcv, SEL sel)
{
    return rb_vm_threads();
}
Пример #3
0
VALUE
rb_thread_list(VALUE rcv, SEL sel)
{
    return rb_ary_dup(rb_vm_threads());
}