diff options
author | Koichi Sasada <[email protected]> | 2020-12-22 01:55:15 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-12-22 05:26:32 +0900 |
commit | 35471a948739ca13b85fe900871e081d553f68e6 (patch) | |
tree | 753724336429afca42bdfc8e30befb79548835a2 /ractor_core.h | |
parent | 8f2031a06725d32f59e5ecd88ede3f96e8c5e9b1 (diff) |
add Ractor#[]/#[]= for ractor local storage
This API is similar to plain old Thread#[]/Fiber#[] interface
with symbol key.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3962
Diffstat (limited to 'ractor_core.h')
-rw-r--r-- | ractor_core.h | 1 |
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; |