Skip to content

Commit

Permalink
Mark as ractor-safe (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedhafez authored Sep 28, 2024
1 parent d5abe65 commit 97604ca
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 97604ca

Please sign in to comment.