mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
introduce struct rb_native_thread
`rb_thread_t` contained `native_thread_data_t` to represent thread implementation dependent data. This patch separates them and rename it `rb_native_thread` and point it from `rb_thraed_t`. Now, 1 Ruby thread (`rb_thread_t`) has 1 native thread (`rb_native_thread`).
This commit is contained in:
parent
69d41480ec
commit
03d21a4fb0
Notes:
git
2022-04-23 03:08:49 +09:00
10 changed files with 167 additions and 132 deletions
|
@ -8,8 +8,11 @@
|
|||
// based implementation in vm.c
|
||||
#define RB_THREAD_LOCAL_SPECIFIER
|
||||
|
||||
typedef struct native_thread_data_struct {} native_thread_data_t;
|
||||
struct rb_native_thread {
|
||||
void *thread_id; // NULL
|
||||
};
|
||||
|
||||
struct rb_thread_sched_item {};
|
||||
struct rb_thread_sched {};
|
||||
|
||||
RUBY_EXTERN struct rb_execution_context_struct *ruby_current_ec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue