diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-10-03 14:05:15 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-10-10 12:48:09 +0200 |
commit | bfc1c7205d9592b5b5be3b351fbf7b9ca8c537b6 (patch) | |
tree | 900787ffb208d56d3e120714b8d235d6f6d6ca16 /ractor.h | |
parent | 9eccf0711fedb7be90b2e4995845eaafacb0c6dd (diff) | |
download | ruby-bfc1c7205d9592b5b5be3b351fbf7b9ca8c537b6.tar.gz |
Add Ractor#receive and Ractor.receive and use it in all places
* Keep Ractor#recv/Ractor.recv as an alias for now.
Diffstat (limited to 'ractor.h')
-rw-r--r-- | ractor.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -53,10 +53,10 @@ struct rb_ractor_struct { struct ractor_wait { enum ractor_wait_status { - wait_none = 0x00, - wait_recving = 0x01, - wait_taking = 0x02, - wait_yielding = 0x04, + wait_none = 0x00, + wait_receiving = 0x01, + wait_taking = 0x02, + wait_yielding = 0x04, } status; enum ractor_wakeup_status { @@ -132,7 +132,7 @@ VALUE rb_ractor_self(const rb_ractor_t *g); void rb_ractor_atexit(rb_execution_context_t *ec, VALUE result); void rb_ractor_atexit_exception(rb_execution_context_t *ec); void rb_ractor_teardown(rb_execution_context_t *ec); -void rb_ractor_recv_parameters(rb_execution_context_t *ec, rb_ractor_t *g, int len, VALUE *ptr); +void rb_ractor_receive_parameters(rb_execution_context_t *ec, rb_ractor_t *g, int len, VALUE *ptr); void rb_ractor_send_parameters(rb_execution_context_t *ec, rb_ractor_t *g, VALUE args); VALUE rb_thread_create_ractor(rb_ractor_t *g, VALUE args, VALUE proc); // defined in thread.c |