We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3c5499 commit bf0b97dCopy full SHA for bf0b97d
include/curl_exception.h
@@ -88,9 +88,11 @@ namespace curl {
88
89
// Implementation of print_traceback
90
inline void curl_exception::print_traceback() const {
91
+ curl_exception::tracebackLocker.lock();
92
std::for_each(curl_exception::traceback.begin(),curl_exception::traceback.end(),[](const curlcpp_traceback_object &value) {
93
std::cout<<"ERROR: "<<value.first<<" ::::: FUNCTION: "<<value.second<<std::endl;
94
});
95
+ curl_exception::tracebackLocker.unlock();
96
}
97
98
// Implementation of clear method.
@@ -187,4 +189,4 @@ namespace curl {
187
189
};
188
190
191
-#endif /* defined(__curlcpp__curl_exception__) */
192
+#endif /* defined(__curlcpp__curl_exception__) */
0 commit comments