From e0b1be01624be75d8ac41b163233186ae2a0db2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Wed, 4 Dec 2019 15:40:18 +0900 Subject: [PATCH] internal/thread.h rework Rather trivial, added missed MJIT_FUNC_EXPORTED function declaration. --- internal/thread.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */