Sha256: c06055d6da8a24dbbd10c1dd5a7d37470a08cd0006ff44c7bdaff93f7dd03990

Contents?: true

Size: 1.7 KB

Versions: 12

Compression:

Stored size: 1.7 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
class:@visibility:public:
@pathI"Thread.stop:EF:@parameters[:@files[[I"
thread.c;T0:@current_file_has_commentsF:
@name:	stop:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"øStops execution of the current thread, putting it into a ``sleep'' state,
and schedules execution of another thread.

   a = Thread.new { print "a"; Thread.stop; print "c" }
   Thread.pass
   print "b"
   a.run
   a.join

<em>produces:</em>

   abc;F:@objectIu:YARD::StubProxyThread.stop;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"	stop;F;IC;";F;Iu;Thread.stop;F;0;[;[o:YARD::Tags::Tag
;I"return;F;I";F;0;[I"nil;F;0:	@allI"@return [nil];F;[;Iu;Thread.stop;F; I"Stops execution of the current thread, putting it into a ``sleep'' state,
and schedules execution of another thread.

   a = Thread.new { print "a"; Thread.stop; print "c" }
   Thread.pass
   print "b"
   a.run
   a.join

<em>produces:</em>

   abc


@overload stop
  @return [nil];F:@namespaceIu;Thread;F:@docstring_extra0:@sourceI"+/*
 *  call-seq:
 *     Thread.stop   -> nil
 *
 *  Stops execution of the current thread, putting it into a ``sleep'' state,
 *  and schedules execution of another thread.
 *
 *     a = Thread.new { print "a"; Thread.stop; print "c" }
 *     Thread.pass
 *     print "b"
 *     a.run
 *     a.join
 *
 *  <em>produces:</em>
 *
 *     abc
 */

VALUE
rb_thread_stop(void)
{
    if (rb_thread_alone()) {
    rb_raise(rb_eThreadError,
         "stopping only thread\n\tnote: use sleep to stop forever");
    }
    rb_thread_sleep_deadly();
    return Qnil;
};F

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_19/objects/Thread/stop_c.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/Thread/stop_c.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/Thread/stop_c.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/Thread/stop_c.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/Thread/stop_c.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/Thread/stop_c.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/Thread/stop_c.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/Thread/stop_c.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/Thread/stop_c.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/Thread/stop_c.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/Thread/stop_c.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/Thread/stop_c.dat