diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-10-11 14:59:09 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-10-16 11:24:25 +0900 |
commit | bbd5b8ddae7b3ff7205866d54cf8aca065a6d9bd (patch) | |
tree | 0716841193c6c36b4d44173ccaf54dbe99356897 /ext/fiddle/fiddle.h | |
parent | a0ecdbfbfe57a57ab33bdb5e1de4d5dfa8407dbb (diff) |
[ruby/fiddle] Ractor support
(https://github.com/ruby/fiddle/pull/139)
https://github.com/ruby/fiddle/commit/91d0ea9849
Co-authored-by: Sutou Kouhei <[email protected]>
Diffstat (limited to 'ext/fiddle/fiddle.h')
-rw-r--r-- | ext/fiddle/fiddle.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/fiddle/fiddle.h b/ext/fiddle/fiddle.h index 54391b95f5..c0ab8a91ec 100644 --- a/ext/fiddle/fiddle.h +++ b/ext/fiddle/fiddle.h @@ -236,4 +236,14 @@ VALUE rb_fiddle_new_function(VALUE address, VALUE arg_types, VALUE ret_type); typedef void (*rb_fiddle_freefunc_t)(void*); VALUE rb_fiddle_ptr_new_wrap(void *ptr, long size, rb_fiddle_freefunc_t func, VALUE wrap0, VALUE wrap1); +enum { + FIDDLE_DEFAULT_TYPED_DATA_FLAGS = ( + RUBY_TYPED_FREE_IMMEDIATELY | + RUBY_TYPED_WB_PROTECTED | +#ifdef RUBY_TYPED_FROZEN_SHAREABLE + RUBY_TYPED_FROZEN_SHAREABLE | +#endif + 0) +}; + #endif |