Welcome to the main channel on the development of MoarVM, a virtual machine for NQP and Rakudo (moarvm.org). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
patrickb Hi there! There is currently no way to receive a native callback from a library that spaws its own threads, right? 11:02
"MoarVM panic: native callback ran in thread (12345) unknown to MoarVM" is the corresponding error...
I'm now thinking how to quickest get a thread switcher working in C land... 11:03
lizmat patrickb: I seem to recall jnthn doing something like that with GTK::Simple and a dedicated ThreadPoolScheduler class 13:56
Voldenet hacky solution would be using something like github.com/tylertreat/chan to send data from native thread to moarvm thread 22:34