aboutsummaryrefslogtreecommitdiffstats
path: root/ractor_core.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-22 01:55:15 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-22 05:26:32 +0900
commit35471a948739ca13b85fe900871e081d553f68e6 (patch)
tree753724336429afca42bdfc8e30befb79548835a2 /ractor_core.h
parent8f2031a06725d32f59e5ecd88ede3f96e8c5e9b1 (diff)
downloadruby-35471a948739ca13b85fe900871e081d553f68e6.tar.gz
add Ractor#[]/#[]= for ractor local storage
This API is similar to plain old Thread#[]/Fiber#[] interface with symbol key.
Diffstat (limited to 'ractor_core.h')
-rw-r--r--ractor_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ractor_core.h b/ractor_core.h
index 1f1e7aacf0..4451e06be1 100644
--- a/ractor_core.h
+++ b/ractor_core.h
@@ -130,6 +130,7 @@ struct rb_ractor_struct {
// ractor local data
st_table *local_storage;
+ struct rb_id_table *idkey_local_storage;
VALUE r_stdin;
VALUE r_stdout;