Skip to content

Commit

Permalink
Merge pull request #200 from mohamedhafez/ractor-safe
Browse files Browse the repository at this point in the history
Mark as ractor-safe
  • Loading branch information
jhawthorn authored Sep 12, 2024
2 parents 5543d26 + 6e7e3f7 commit 204ee88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/ruby/ext/trilogy-ruby/cext.c
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,10 @@ static VALUE rb_trilogy_server_version(VALUE self) { return rb_str_new_cstr(get_

RUBY_FUNC_EXPORTED void Init_cext(void)
{
#ifdef HAVE_RB_EXT_RACTOR_SAFE
rb_ext_ractor_safe(true);
#endif

VALUE Trilogy = rb_const_get(rb_cObject, rb_intern("Trilogy"));
rb_define_alloc_func(Trilogy, allocate_trilogy);

Expand Down

0 comments on commit 204ee88

Please sign in to comment.