Make curlwrapper_instances explicitly atomic.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2020-01-08 11:27:19 +01:00
parent bbd0445821
commit 50ae16002b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 3 additions and 1 deletions

View File

@ -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{}