I think we can assume the first function to be called to be some subset of the config functions, as onion_new, onion_url_new or onion_handler_new, so we can do some onion_init there. It should be idempotent so it can be called as many times as desired.
Anyway I would first really check if there is some other way. I thought pthread_init_once did the trick.
Can you send the log output?
Also, for 1.0 maybe pthreads should be mandatory...
You received this message because you are subscribed to the Google Groups "onion-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onion-dev+...@coralbits.com.
To post to this group, send email to onio...@coralbits.com.
Visit this group at https://groups.google.com/a/coralbits.com/group/onion-dev/.
For more options, visit https://groups.google.com/a/coralbits.com/d/optout.