aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2023-03-30 02:38:08 +0900
committerKoichi Sasada <ko1@atdot.net>2023-03-30 14:56:37 +0900
commit30b43f4f1a37641edc0b146b8a648686a65a3aef (patch)
treecfb8eadc793d0590a1a01459279f0400ab9bda81 /thread.c
parent94e41822679ebd269564ad10d366596e1514d4ef (diff)
downloadruby-30b43f4f1a37641edc0b146b8a648686a65a3aef.tar.gz
`rb_ractor_thread_list()` only for current ractor
so that no need to lock the ractor.
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 81be9fb03b..57bd2e0d9c 100644
--- a/thread.c
+++ b/thread.c
@@ -2728,7 +2728,7 @@ VALUE
rb_thread_list(void)
{
// TODO
- return rb_ractor_thread_list(GET_RACTOR());
+ return rb_ractor_thread_list();
}
/*