new(*args) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE
thread_s_new(int argc, VALUE *argv, VALUE klass)
    rb_thread_t *th;
    VALUE thread = rb_thread_alloc(klass);

    if (GET_VM()->inhibit_thread_creation)
        rb_raise(rb_eThreadError, "can't alloc thread");

    rb_obj_call_init(thread, argc, argv);
    GetThreadPtr(thread, th);
    if (!th->first_args) {
        rb_raise(rb_eThreadError, "uninitialized thread - check `%s#initialize'",
    return thread;
Register or log in to add new notes.