Is cURL CURLOPT_WRITEFUNCTION called from same thread? Is cURL CURLOPT_WRITEFUNCTION called from same thread? curl curl

Is cURL CURLOPT_WRITEFUNCTION called from same thread?


Yes it is. For all practical purposes libcurl is single-threaded and will never do callbacks from any other thread than the one you call it in.

The only other thread libcurl will ever use (if built that way) is a separate thread for name resolves, but that thread will never do any callbacks or otherwise become visible to the caller or API.