Skip to content

Commit

Permalink
Mark as ractor-safe
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedhafez authored Sep 18, 2024
1 parent 1cca872 commit 9dc45f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/nio4r/nio4r_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ void Init_NIO_ByteBuffer();

void Init_nio4r_ext()
{
#ifdef HAVE_RB_EXT_RACTOR_SAFE
rb_ext_ractor_safe(true);
#endif

ev_set_allocator(xrealloc);

Init_NIO_Selector();
Expand Down

0 comments on commit 9dc45f7

Please sign in to comment.