Sha256: 1e501dbdeaf844f550135363b818f2441c1f508c44c209e1770196349fb4b068

Contents?: true

Size: 1.68 KB

Versions: 12

Compression:

Stored size: 1.68 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"Thread#wakeup:EF:@parameters[:@files[[I"
thread.c;T0:@current_file_has_commentsF:
@name:wakeup:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"ğMarks <i>thr</i> as eligible for scheduling (it may still remain blocked on
I/O, however). Does not invoke the scheduler (see <code>Thread#run</code>).

   c = Thread.new { Thread.stop; puts "hey!" }
   c.wakeup

<em>produces:</em>

   hey!;F:@objectIu:YARD::StubProxyThread#wakeup;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"wakeup;F;IC;";F;Iu;Thread#wakeup;F;0;[;[:	@allI";F;[;Iu;Thread#wakeup;F;I"Marks <i>thr</i> as eligible for scheduling (it may still remain blocked on
I/O, however). Does not invoke the scheduler (see <code>Thread#run</code>).

   c = Thread.new { Thread.stop; puts "hey!" }
   c.wakeup

<em>produces:</em>

   hey!


@overload wakeup;F:@namespaceIu;Thread;F:@docstring_extra0:@sourceI"{/*
 *  call-seq:
 *     thr.wakeup   -> thr
 *
 *  Marks <i>thr</i> as eligible for scheduling (it may still remain blocked on
 *  I/O, however). Does not invoke the scheduler (see <code>Thread#run</code>).
 *
 *     c = Thread.new { Thread.stop; puts "hey!" }
 *     c.wakeup
 *
 *  <em>produces:</em>
 *
 *     hey!
 */

VALUE
rb_thread_wakeup(VALUE thread)
{
    rb_thread_t *th;
    GetThreadPtr(thread, th);

    if (th->status == THREAD_KILLED) {
    rb_raise(rb_eThreadError, "killed thread");
    }
    rb_threadptr_ready(th);
    if (th->status != THREAD_TO_KILL) {
    th->status = THREAD_RUNNABLE;
    }
    return thread;
};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/wakeup_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/Thread/wakeup_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/Thread/wakeup_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/Thread/wakeup_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/Thread/wakeup_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/Thread/wakeup_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/Thread/wakeup_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/Thread/wakeup_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/Thread/wakeup_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/Thread/wakeup_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/Thread/wakeup_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/Thread/wakeup_i.dat