Sha256: fdd44136f58e19fa6dd3241da29b218d6ed0ad682a5dcb062a781d2bf3623753
Contents?: true
Size: 1.25 KB
Versions: 12
Compression:
Stored size: 1.25 KB
Contents
o:$YARD::CodeObjects::MethodObject:@scope: instance:@visibility:public: @pathI"Thread#initialize:EF:@parameters[ :@files[[I" thread.c;T0:@current_file_has_commentsF: @name:initialize:@source_type:c: @tags[ :@docstringIC:YARD::Docstring":nodoc:;F:@objectIu:YARD::StubProxyThread#initialize;F: @summary0:@ref_tags[ ;[ : @allI":nodoc:;F:@namespaceIu;Thread;F:@docstring_extra0:@sourceI"L/* :nodoc: */ static VALUE thread_initialize(VALUE thread, VALUE args) { rb_thread_t *th; if (!rb_block_given_p()) { rb_raise(rb_eThreadError, "must be called with a block"); } GetThreadPtr(thread, th); if (th->first_args) { VALUE rb_proc_location(VALUE self); VALUE proc = th->first_proc, line, loc; const char *file; if (!proc || !RTEST(loc = rb_proc_location(proc))) { rb_raise(rb_eThreadError, "already initialized thread"); } file = RSTRING_PTR(RARRAY_PTR(loc)[0]); if (NIL_P(line = RARRAY_PTR(loc)[1])) { rb_raise(rb_eThreadError, "already initialized thread - %s", file); } rb_raise(rb_eThreadError, "already initialized thread - %s:%d", file, NUM2INT(line)); } return thread_create_core(thread, args, 0); };F
Version data entries
12 entries across 12 versions & 2 rubygems