Use shared_ptr for CurlGet stream and improved thread-safety.

This commit is contained in:
Jari Sundell
2025-06-17 16:15:40 +02:00
committed by GitHub
parent 12347843a9
commit 64cb3d11a0
4 changed files with 13 additions and 12 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
#include <functional>
#include <iosfwd>
#include <memory>
#include <list>
#include <string>
#include <torrent/net/http_get.h>
@@ -38,7 +39,7 @@ public:
//
// Consider adding a flag to indicate whetever HttpQueue should
// delete the stream.
iterator insert(const std::string& url, std::iostream* stream);
iterator insert(const std::string& url, std::shared_ptr<std::ostream> stream);
void erase(iterator itr);
void clear();