Peter Zhu
66349692f0
Introduce free function to rb_concurrent_set_funcs
...
If we create a key but don't insert it (due to other Ractor winning the
race), then it would leak memory if we don't free it. This introduces a
new function to free that memory for this case.
2025-07-21 10:58:30 -04:00
Peter Zhu
f05ee26a1f
Add rb_concurrent_set_find
2025-07-21 10:58:30 -04:00
Peter Zhu
9ef482bd13
Add rb_concurrent_set_size
2025-07-21 10:58:30 -04:00
Peter Zhu
f5312d8e7f
Make rb_concurrent_set_funcs const
...
We should never modify rb_concurrent_set_funcs during runtime, so we can
make it const.
2025-07-15 09:55:36 -04:00
Jean Boussier
0bb44f291e
Rename ractor_safe_set
into concurrent_set
...
There's nothing ractor related in them, and the classic terminology
for these sort of data structures is `concurrent-*`, e.g.
concurrent hash.
2025-07-07 15:12:39 +02:00