Class: Process::Waiter
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::Thread
|
|
Instance Chain:
self,
::Thread
|
|
Inherits: | Thread |
Defined in: | process.c |
Class Attribute Summary
::Thread
- Inherited
.abort_on_exception | Returns the status of the global “abort on exception” condition. |
.abort_on_exception= | When set to |
.ignore_deadlock | Returns the status of the global “ignore deadlock” condition. |
.ignore_deadlock= | Returns the new state. |
.report_on_exception | Returns the status of the global “report on exception” condition. |
.report_on_exception= | Returns the new state. |
Class Method Summary
::Thread
- Inherited
.current | Returns the currently executing thread. |
.each_caller_location | Yields each frame of the current execution stack as a backtrace location object. |
.exit | Terminates the currently running thread and schedules another thread to be run. |
.fork | Basically the same as |
.handle_interrupt | Changes asynchronous interrupt timing. |
.kill | Causes the given |
.list | Returns an array of |
.main | Returns the main thread. |
.new | Creates a new thread executing the given block. |
.pass | Give the thread scheduler a hint to pass execution to another thread. |
.pending_interrupt? | Returns whether or not the asynchronous queue is empty. |
.start | Alias for Thread.fork. |
.stop | Stops execution of the current thread, putting it into a “sleep” state, and schedules execution of another thread. |
Instance Attribute Summary
::Thread
- Inherited
#abort_on_exception | Returns the status of the thread-local “abort on exception” condition for this |
#abort_on_exception= | When set to |
#alive? | Returns |
#name | show the name of the thread. |
#name= | set given name to the ruby thread. |
#priority | Returns the priority of thr. |
#priority= | Sets the priority of thr to integer. |
#report_on_exception | Returns the status of the thread-local “report on exception” condition for this |
#report_on_exception= | When set to |
#stop? | Returns |
Instance Method Summary
::Thread
- Inherited
#[] | Attribute Reference—Returns the value of a fiber-local variable (current thread’s root fiber if not explicitly inside a |
#[]= | Attribute Assignment—Sets or creates the value of a fiber-local variable, using either a symbol or a string. |
#add_trace_func | Adds proc as a handler for tracing. |
#backtrace | Returns the current backtrace of the target thread. |
#backtrace_locations | Returns the execution stack for the target thread—an array containing backtrace location objects. |
#exit | Terminates |
#fetch | Returns a fiber-local for the given key. |
#group | Returns the |
#inspect | Alias for Thread#to_s. |
#join | The calling thread will suspend execution and run this |
#key? | Returns |
#keys | Returns an array of the names of the fiber-local variables (as Symbols). |
#kill | Alias for Thread#exit. |
#native_thread_id | Return the native thread ID which is used by the Ruby thread. |
#pending_interrupt? | Returns whether or not the asynchronous queue is empty for the target thread. |
#raise | Raises an exception from the given thread. |
#run | Wakes up |
#set_trace_func | Establishes proc on thr as the handler for tracing, or disables tracing if the parameter is |
#status | Returns the status of |
#terminate | Alias for Thread#exit. |
#thread_variable? | Returns |
#thread_variable_get | Returns the value of a thread local variable that has been set. |
#thread_variable_set | Sets a thread local with |
#thread_variables | Returns an array of the names of the thread-local variables (as Symbols). |
#to_s | Dump the name, id, and status of thr to a string. |
#value | Waits for |
#wakeup | Marks a given thread as eligible for scheduling, however it may still remain blocked on I/O. |
#initialize |
Constructor Details
This class inherits a constructor from Thread
Instance Method Details
#pid
[ GitHub ]# File 'process.c', line 1534
static VALUE detach_process_pid(VALUE thread) { return rb_thread_local_aref(thread, id_pid); }