internal/ractor.h: Added

Currently it has only one function prototype.
This commit is contained in:
Yusuke Endoh 2022-03-30 14:46:18 +09:00
parent 2ade40276b
commit 5df2589b64
Notes: git 2022-03-30 16:51:08 +09:00
3 changed files with 7 additions and 3 deletions

6
internal/ractor.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef INTERNAL_RACTOR_H /*-*-C-*-vi:se ft=c:*/
#define INTERNAL_RACTOR_H
void rb_ractor_ensure_main_ractor(const char *msg);
#endif /* INTERNAL_RACTOR_H */

View File

@ -185,8 +185,6 @@ void rb_ractor_atfork(rb_vm_t *vm, rb_thread_t *th);
VALUE rb_ractor_ensure_shareable(VALUE obj, VALUE name);
void rb_ractor_ensure_main_ractor(const char *msg);
RUBY_SYMBOL_EXPORT_BEGIN
bool rb_ractor_shareable_p_continue(VALUE obj);

2
re.c
View File

@ -20,8 +20,8 @@
#include "internal/imemo.h"
#include "internal/re.h"
#include "internal/string.h"
#include "internal/ractor.h"
#include "internal/variable.h"
#include "ractor_core.h"
#include "regint.h"
#include "ruby/encoding.h"
#include "ruby/re.h"