Skip to content

Commit 9b00f0b

Browse files
nobudenofevil
authored andcommitted
get the current thread with rb_thread_current().
1 parent 7f87912 commit 9b00f0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/ruby_debug/ruby_debug.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ threadptr_data_type(void)
203203
}
204204

205205
#define ruby_threadptr_data_type *threadptr_data_type()
206+
#define ruby_current_thread ((rb_thread_t *)RTYPEDDATA_DATA(rb_thread_current()))
206207

207208
static int
208209
is_in_locked(VALUE thread_id)

0 commit comments

Comments
 (0)