curl-library
RE: Is curl_multi interface thread-safe?
From: Vladimir Grishchenko <vladgri_at_hotmail.com>
Date: Thu, 13 Oct 2011 12:40:23 -0700
Date: Thu, 13 Oct 2011 12:40:23 -0700
>Are those curl_multi interface designed as thread-safe, or I have to use my own locking mechanism to protect my multi-handle?
>
>Thanks,Walter
No, it is not safe. You need to have an exclusion mechanism in place that prevents concurrent access. Better yet come up with a solution that does all multi-handle interactions from a single thread.
-V
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-13