aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-12-04 15:40:18 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-12-26 20:45:12 +0900
commite0b1be01624be75d8ac41b163233186ae2a0db2f (patch)
tree5db61be0ac2f8c0ea0077cca21d7d5f73855aa68 /internal
parentce2c97d738d6eb374e6dedf6e082b06a61ab6ef9 (diff)
downloadruby-e0b1be01624be75d8ac41b163233186ae2a0db2f.tar.gz
internal/thread.h rework
Rather trivial, added missed MJIT_FUNC_EXPORTED function declaration.
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 */