I've managed to compile (without errors) fluidsynth library that uses pthreads in old version and glib gthreads in newer version. However, in swf I get runtime errors Undefined sym: _pthread_attr_init
and Undefined sym: _g_thread_init
respectively.
Is this dead end as far as threading goes, or there's a way to make this work? (Or am I skipping something in the final linking phase?)
In case of gthreads, this doc mentions custom thread implementations:
The threading system is initialized with g_thread_init(), which takes an optional custom thread implementation or NULL for the default implementation.
I understand that alchemy doesn't support native threads, but could some fake green thread implementation be used for this purpose?