summaryrefslogtreecommitdiff
path: root/ractor.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-09-24 17:41:10 +0900
committerKoichi Sasada <ko1@atdot.net>2020-09-25 00:25:38 +0900
commit7ad3aff48dc8309542704b2212b3c3d1df8155d0 (patch)
tree2e9537a5fc1930c3000057e3b9be41cd4182b2a9 /ractor.h
parent757e185cee44c627f9e573c926fd73843f81006b (diff)
Ractor#close_outgoping cancel Ractor.yield
Ractor#close_outgoing should cancel waiting Ractor.yield. However, yield a value by the Ractor's block should not cancel (to recognize terminating Ractor, introduce rb_ractor_t::yield_atexit flag).
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3572
Diffstat (limited to 'ractor.h')
-rw-r--r--ractor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ractor.h b/ractor.h
index 640fc62ff5..10d7ba8325 100644
--- a/ractor.h
+++ b/ractor.h
@@ -47,6 +47,7 @@ struct rb_ractor_struct {
bool incoming_port_closed;
bool outgoing_port_closed;
+ bool yield_atexit;
struct rb_ractor_waiting_list taking_ractors;