aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/thread.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/thread.h b/internal/thread.h
index 568351e6cb..886818b023 100644
--- a/internal/thread.h
+++ b/internal/thread.h
@@ -9,6 +9,10 @@
* modify this file, provided that the conditions mentioned in the
* file COPYING are met. Consult the file for details.
*/
+#include "ruby/ruby.h" /* for VALUE */
+#include "ruby/intern.h" /* for rb_blocking_function_t */
+
+struct rb_thread_struct; /* in vm_core.h */
/* thread.c */
#define COVERAGE_INDEX_LINES 0
@@ -41,4 +45,8 @@ VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, in
int ruby_thread_has_gvl_p(void); /* for ext/fiddle/closure.c */
RUBY_SYMBOL_EXPORT_END
+MJIT_SYMBOL_EXPORT_BEGIN
+int rb_threadptr_execute_interrupts(struct rb_thread_struct *th, int blocking_timing);
+MJIT_SYMBOL_EXPORT_END
+
#endif /* INTERNAL_THREAD_H */