summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/curl_wrapper.cpp4
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{}