mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
|
@ -126,11 +126,11 @@ ruby_thread_set_native(rb_thread_t *th)
|
|||
}
|
||||
|
||||
void
|
||||
Init_native_thread(rb_thread_t *th)
|
||||
Init_native_thread(rb_thread_t *main_th)
|
||||
{
|
||||
// no TLS setup and no thread id setup
|
||||
ruby_thread_set_native(th);
|
||||
fill_thread_id_str(th);
|
||||
ruby_thread_set_native(main_th);
|
||||
fill_thread_id_str(main_th);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue