Ruby  3.4.0dev (2024-11-22 revision 37a72b0150ec36b4ea27175039afc28c62207b0c)
Public Types | Public Member Functions | Data Fields
rb_thread_struct Struct Reference

Public Types

enum  thread_invoke_type { thread_invoke_type_none = 0 , thread_invoke_type_proc , thread_invoke_type_ractor_proc , thread_invoke_type_func }
 

Public Member Functions

 BITFIELD (enum rb_thread_status, status, 2)
 

Data Fields

struct ccan_list_node lt_node
 
VALUE self
 
rb_ractor_tractor
 
rb_vm_tvm
 
struct rb_native_threadnt
 
rb_execution_context_tec
 
struct rb_thread_sched_item sched
 
bool mn_schedulable
 
rb_atomic_t serial
 
VALUE last_status
 
struct rb_calling_infocalling
 
VALUE top_self
 
VALUE top_wrapper
 
unsigned int has_dedicated_nt: 1
 
unsigned int to_kill: 1
 
unsigned int abort_on_exception: 1
 
unsigned int report_on_exception: 1
 
unsigned int pending_interrupt_queue_checked: 1
 
int8_t priority
 
uint32_t running_time_us
 
void * blocking_region_buffer
 
VALUE thgroup
 
VALUE value
 
VALUE pending_interrupt_queue
 
VALUE pending_interrupt_mask_stack
 
rb_nativethread_lock_t interrupt_lock
 
struct rb_unblock_callback unblock
 
VALUE locking_mutex
 
struct rb_mutex_structkeeping_mutexes
 
struct ccan_list_head interrupt_exec_tasks
 
struct rb_waiting_listjoin_list
 
union {
   struct {
      VALUE   proc
 
      VALUE   args
 
      int   kw_splat
 
   }   proc
 
   struct {
      VALUE(*   func )(void *)
 
      void *   arg
 
   }   func
 
invoke_arg
 
enum rb_thread_struct::thread_invoke_type invoke_type
 
VALUE stat_insn_usage
 
rb_fiber_troot_fiber
 
VALUE scheduler
 
unsigned int blocking
 
VALUE name
 
void ** specific_storage
 
struct rb_ext_config ext_config
 

Detailed Description

Definition at line 1107 of file vm_core.h.


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