Ruby  2.0.0p648(2015-12-16revision53162)
Data Fields
rb_thread_struct Struct Reference

#include <vm_core.h>

Data Fields

VALUE self
 
rb_vm_tvm
 
VALUEstack
 
size_t stack_size
 
rb_control_frame_tcfp
 
int safe_level
 
int raised_flag
 
VALUE last_status
 
int state
 
int waiting_fd
 
const rb_block_tpassed_block
 
const rb_method_entry_tpassed_me
 
rb_call_info_tpassed_ci
 
VALUE top_self
 
VALUE top_wrapper
 
rb_block_tbase_block
 
VALUEroot_lep
 
VALUE root_svar
 
rb_thread_id_t thread_id
 
enum rb_thread_status status
 
int to_kill
 
int priority
 
native_thread_data_t native_thread_data
 
void * blocking_region_buffer
 
VALUE thgroup
 
VALUE value
 
VALUE errinfo
 
VALUE pending_interrupt_queue
 
int pending_interrupt_queue_checked
 
VALUE pending_interrupt_mask_stack
 
rb_atomic_t interrupt_flag
 
unsigned long interrupt_mask
 
rb_thread_lock_t interrupt_lock
 
struct rb_unblock_callback unblock
 
VALUE locking_mutex
 
struct rb_mutex_structkeeping_mutexes
 
struct rb_vm_tagtag
 
struct rb_vm_protect_tagprotect_tag
 
int parse_in_eval
 Thread-local state of evaluation context. More...
 
int mild_compile_error
 Thread-local state of compiling context. More...
 
st_tablelocal_storage
 
rb_thread_list_tjoin_list
 
VALUE first_proc
 
VALUE first_args
 
VALUE(* first_func )(ANYARGS)
 
VALUEmachine_stack_start
 
VALUEmachine_stack_end
 
size_t machine_stack_maxsize
 
jmp_buf machine_regs
 
int mark_stack_len
 
VALUE stat_insn_usage
 
rb_hook_list_t event_hooks
 
struct rb_trace_arg_structtrace_arg
 
VALUE fiber
 
VALUE root_fiber
 
rb_jmpbuf_t root_jmpbuf
 
int method_missing_reason
 
int abort_on_exception
 
unsigned long running_time_us
 

Detailed Description

Definition at line 493 of file vm_core.h.

Field Documentation

◆ abort_on_exception

int rb_thread_struct::abort_on_exception

Definition at line 613 of file vm_core.h.

Referenced by rb_thread_abort_exc(), rb_thread_abort_exc_set(), and thread_start_func_2().

◆ base_block

rb_block_t* rb_thread_struct::base_block

◆ blocking_region_buffer

void* rb_thread_struct::blocking_region_buffer

◆ cfp

rb_control_frame_t* rb_thread_struct::cfp

Definition at line 500 of file vm_core.h.

Referenced by backtrace_each(), check_block(), check_funcall_callable(), cont_capture(), cont_restore_thread(), errinfo_place(), eval_string_with_cref(), fiber_init(), Init_VM(), invoke_block_from_c(), m_core_set_postexe(), previous_frame(), proc_new(), rb_add_method(), rb_binding_new(), rb_block_given_p(), rb_call(), rb_catch_obj(), rb_current_realfilepath(), rb_debug_inspector_open(), rb_f_block_given_p(), rb_f_local_variables(), rb_frame_last_func(), rb_iterate(), rb_mod_refine(), rb_protect(), rb_raise_jump(), rb_rescue2(), rb_sourcefile(), rb_sourcefilename(), rb_sourceline(), rb_thread_current_status(), rb_thread_mark(), rb_thread_method_id_and_class(), rb_threadptr_exec_event_hooks_orig(), rb_threadptr_execute_interrupts(), rb_vm_call_cfunc(), rb_vm_cbase(), rb_vm_cref(), rb_vm_pop_cfunc_frame(), rb_vm_rewind_cfp(), rb_vm_stack_to_heap(), rb_vmdebug_debug_print_post(), rb_vmdebug_debug_print_register(), rb_vmdebug_stack_dump_raw_current(), rb_vmdebug_stack_dump_th(), rb_vmdebug_thread_dump_state(), rb_yield_refine_block(), send_internal(), setup_exception(), th_init(), update_coverage(), vm_call0_body(), vm_call0_cfunc_with_frame(), vm_call_cfunc_with_frame(), vm_call_iseq_setup_tailcall(), vm_call_super(), vm_cref_push(), vm_exec(), vm_exec_core(), vm_get_ev_const(), vm_iter_break(), vm_pop_frame(), vm_push_frame(), vm_rewrite_ep_in_errinfo(), vm_set_eval_stack(), vm_set_main_stack(), vm_set_top_stack(), vm_svar_get(), vm_svar_set(), vm_yield_setup_block_args(), vm_yield_with_cfunc(), and yield_under().

◆ errinfo

VALUE rb_thread_struct::errinfo

◆ event_hooks

rb_hook_list_t rb_thread_struct::event_hooks

◆ fiber

VALUE rb_thread_struct::fiber

◆ first_args

VALUE rb_thread_struct::first_args

◆ first_func

VALUE(* rb_thread_struct::first_func) (ANYARGS)

Definition at line 585 of file vm_core.h.

Referenced by thread_create_core(), and thread_start_func_2().

◆ first_proc

VALUE rb_thread_struct::first_proc

◆ interrupt_flag

rb_atomic_t rb_thread_struct::interrupt_flag

Definition at line 554 of file vm_core.h.

Referenced by rb_threadptr_execute_interrupts().

◆ interrupt_lock

rb_thread_lock_t rb_thread_struct::interrupt_lock

◆ interrupt_mask

unsigned long rb_thread_struct::interrupt_mask

◆ join_list

rb_thread_list_t* rb_thread_struct::join_list

◆ keeping_mutexes

struct rb_mutex_struct* rb_thread_struct::keeping_mutexes

◆ last_status

VALUE rb_thread_struct::last_status

◆ local_storage

st_table* rb_thread_struct::local_storage

◆ locking_mutex

VALUE rb_thread_struct::locking_mutex

◆ machine_regs

jmp_buf rb_thread_struct::machine_regs

Definition at line 596 of file vm_core.h.

Referenced by rb_thread_mark().

◆ machine_stack_end

VALUE* rb_thread_struct::machine_stack_end

◆ machine_stack_maxsize

size_t rb_thread_struct::machine_stack_maxsize

Definition at line 590 of file vm_core.h.

◆ machine_stack_start

VALUE* rb_thread_struct::machine_stack_start

◆ mark_stack_len

int rb_thread_struct::mark_stack_len

◆ method_missing_reason

int rb_thread_struct::method_missing_reason

◆ mild_compile_error

int rb_thread_struct::mild_compile_error

Thread-local state of compiling context.

If non-zero, the parser does not automatically print error messages to stderr.

Definition at line 576 of file vm_core.h.

Referenced by compile_err_append(), eval_string_with_cref(), and rb_load_internal().

◆ native_thread_data

native_thread_data_t rb_thread_struct::native_thread_data

Definition at line 535 of file vm_core.h.

◆ parse_in_eval

int rb_thread_struct::parse_in_eval

Thread-local state of evaluation context.

If negative, this thread is evaluating the main program. If positive, this thread is evaluating a program under Kernel::eval family.

Definition at line 570 of file vm_core.h.

Referenced by eval_string_with_cref(), prepare_iseq_build(), rb_parse_in_eval(), rb_parse_in_main(), and require_libraries().

◆ passed_block

const rb_block_t* rb_thread_struct::passed_block

◆ passed_ci

rb_call_info_t* rb_thread_struct::passed_ci

Definition at line 517 of file vm_core.h.

Referenced by GET_THREAD().

◆ passed_me

const rb_method_entry_t* rb_thread_struct::passed_me

Definition at line 514 of file vm_core.h.

Referenced by invoke_block_from_c(), and vm_call_bmethod_body().

◆ pending_interrupt_mask_stack

VALUE rb_thread_struct::pending_interrupt_mask_stack

◆ pending_interrupt_queue

VALUE rb_thread_struct::pending_interrupt_queue

◆ pending_interrupt_queue_checked

int rb_thread_struct::pending_interrupt_queue_checked

◆ priority

int rb_thread_struct::priority

◆ protect_tag

struct rb_vm_protect_tag* rb_thread_struct::protect_tag

Definition at line 562 of file vm_core.h.

Referenced by cont_restore_thread(), fiber_switch(), rb_cont_call(), and rb_protect().

◆ raised_flag

int rb_thread_struct::raised_flag

◆ root_fiber

VALUE rb_thread_struct::root_fiber

◆ root_jmpbuf

rb_jmpbuf_t rb_thread_struct::root_jmpbuf

Definition at line 609 of file vm_core.h.

Referenced by fiber_init().

◆ root_lep

VALUE* rb_thread_struct::root_lep

Definition at line 526 of file vm_core.h.

Referenced by cont_restore_thread(), lep_svar_place(), and rb_fiber_start().

◆ root_svar

VALUE rb_thread_struct::root_svar

◆ running_time_us

unsigned long rb_thread_struct::running_time_us

Definition at line 617 of file vm_core.h.

Referenced by rb_thread_schedule_limits(), and rb_threadptr_execute_interrupts().

◆ safe_level

int rb_thread_struct::safe_level

◆ self

VALUE rb_thread_struct::self

◆ stack

VALUE* rb_thread_struct::stack

◆ stack_size

size_t rb_thread_struct::stack_size

◆ stat_insn_usage

VALUE rb_thread_struct::stat_insn_usage

Definition at line 600 of file vm_core.h.

Referenced by rb_thread_mark().

◆ state

int rb_thread_struct::state

◆ status

enum rb_thread_status rb_thread_struct::status

◆ tag

struct rb_vm_tag* rb_thread_struct::tag

◆ thgroup

VALUE rb_thread_struct::thgroup

◆ thread_id

rb_thread_id_t rb_thread_struct::thread_id

◆ to_kill

int rb_thread_struct::to_kill

◆ top_self

VALUE rb_thread_struct::top_self

◆ top_wrapper

VALUE rb_thread_struct::top_wrapper

◆ trace_arg

struct rb_trace_arg_struct* rb_thread_struct::trace_arg

◆ unblock

struct rb_unblock_callback rb_thread_struct::unblock

◆ value

VALUE rb_thread_struct::value

Definition at line 539 of file vm_core.h.

Referenced by rb_thread_mark(), thread_start_func_2(), and thread_value().

◆ vm

rb_vm_t* rb_thread_struct::vm

◆ waiting_fd

int rb_thread_struct::waiting_fd

The documentation for this struct was generated from the following file: