mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Add Ractor#receive and Ractor.receive and use it in all places
* Keep Ractor#recv/Ractor.recv as an alias for now.
This commit is contained in:
parent
9eccf0711f
commit
bfc1c7205d
Notes:
git
2020-10-10 19:48:42 +09:00
6 changed files with 117 additions and 113 deletions
2
thread.c
2
thread.c
|
@ -720,7 +720,7 @@ thread_do_start_proc(rb_thread_t *th)
|
|||
VM_ASSERT(FIXNUM_P(args));
|
||||
args_len = FIX2INT(args);
|
||||
args_ptr = ALLOCA_N(VALUE, args_len);
|
||||
rb_ractor_recv_parameters(th->ec, th->ractor, args_len, (VALUE *)args_ptr);
|
||||
rb_ractor_receive_parameters(th->ec, th->ractor, args_len, (VALUE *)args_ptr);
|
||||
vm_check_ints_blocking(th->ec);
|
||||
|
||||
// kick thread
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue