socketry / nio4r

Cross-platform asynchronous I/O primitives for scalable network clients and servers.
Other
965 stars 86 forks source link

Make C-extension Ractor-safe #318

Open mohamedhafez opened 3 days ago

mohamedhafez commented 3 days ago

In planning ahead to the near future when TruffleRuby can run C-extensions marked with rb_ext_ractor_safe(true) in parallel, and for when Ractors are no longer just experimental, it would be great if the C-extension could be made Ractor-safe, or marked as such if it already is so!

ioquatix commented 3 days ago

That seems reasonable, do you want to have a go at making a PR?

mohamedhafez commented 3 days ago

Unfortunately I don't know the first thing about programming in C personally 😅 And to be honest I just don't have the bandwith to figure it out