Skip to content

Commit 97604ca

Browse files
authored
Mark as ractor-safe (#320)
1 parent d5abe65 commit 97604ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/nio4r/nio4r_ext.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ void Init_NIO_ByteBuffer();
1212

1313
void Init_nio4r_ext()
1414
{
15+
#ifdef HAVE_RB_EXT_RACTOR_SAFE
16+
rb_ext_ractor_safe(true);
17+
#endif
18+
1519
ev_set_allocator(xrealloc);
1620

1721
Init_NIO_Selector();

0 commit comments

Comments
 (0)