Please sign in to comment.
Common/HttpRequest: Simplify cURL initialization
std::call_once is guaranteed to execute the given callable object exactly once. This guarantee holds even if the function is called concurrently from several threads. Given that, we can replace the mutex and boolean flag with std::call_once and a std::once_flag to perform the same behavior.
- Loading branch information...