We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f7ab93 commit 7f87912Copy full SHA for 7f87912
ext/ruby_debug/ruby_debug.c
@@ -191,6 +191,19 @@ context_thread_0(debug_context_t *debug_context)
191
return id2ref(debug_context->thread_id);
192
}
193
194
+static inline const rb_data_type_t *
195
+threadptr_data_type(void)
196
+{
197
+ static const rb_data_type_t *thread_data_type;
198
+ if (!thread_data_type) {
199
+ VALUE current_thread = rb_thread_current();
200
+ thread_data_type = RTYPEDDATA_TYPE(current_thread);
201
+ }
202
+ return thread_data_type;
203
+}
204
+
205
+#define ruby_threadptr_data_type *threadptr_data_type()
206
207
static int
208
is_in_locked(VALUE thread_id)
209
{
0 commit comments