Hi everybody,
This is my first post here :).
I'm trying to write a gtk3 binding to be able to create gtk applications using Elixir.
I started writing a nif to start the gtk main event loop (gtk_main call). The problem is, that will block the thread (I guess the VM too), so I will probably need to spawn a new thread to run the gtk_main loop. My idea is to somehow capture events from gtk ui and send them to beam processes as messages.
Do you know any good examples/tutorial/doc showing how to work with threads in nifs? asynchronously send messages from nif to beam processes?
Thanks a lot!
Cheers.
David