Hi Mark, On 31-Mar-22 15:04, Mark Wielaard wrote:
whether there is a thread-safe way to call curl_global_init at a later time (to get rid of the library constructor init function).
I believe that this is an exact fit for C==11's std::call_once(). Boost also has an equivalent, that most likely predates the other, in case older c++ standard is used.
Regards, Catalin -- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html