diff options
Diffstat (limited to 'src/curl_wrapper.cpp')
-rw-r--r-- | src/curl_wrapper.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/curl_wrapper.cpp b/src/curl_wrapper.cpp index 996f5fb..5547365 100644 --- a/src/curl_wrapper.cpp +++ b/src/curl_wrapper.cpp @@ -19,16 +19,18 @@ #include "log.hpp" #include "version.hpp" +#include <atomic> #include <cstdint> #include <cstring> namespace mastodonpp { +using std::atomic; using std::uint8_t; using std::uint16_t; -static uint16_t curlwrapper_instances{0}; +static atomic<uint16_t> curlwrapper_instances{0}; CURLWrapper::CURLWrapper() : _curl_buffer_error{} |