Skip to content

Commit

Permalink
remove mutex [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
markaren committed Mar 16, 2024
1 parent 9ca607e commit d8b5d00
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/libs/utility/URLFetcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <iostream>
#endif

#include <mutex>
#include <string>
#include <vector>

Expand All @@ -17,8 +16,6 @@ namespace threepp::utils {
#ifdef THREEPP_WITH_CURL

inline static size_t write_data(char* ptr, size_t size, size_t nmemb, void* userdata) {
static std::mutex m;
std::lock_guard<std::mutex> lck(m);
auto stream = (std::vector<unsigned char>*) userdata;
size_t count = size * nmemb;
stream->insert(stream->end(), ptr, ptr + count);
Expand Down

0 comments on commit d8b5d00

Please sign in to comment.