mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 12:17:49 +02:00
atomics have been used for threads stop
This commit is contained in:
parent
8c09a7429c
commit
dfa1482ab2
15 changed files with 259 additions and 212 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <thread>
|
||||
#include <boost/asio.hpp>
|
||||
#include <sstream>
|
||||
#include <atomic>
|
||||
#include "HTTP.h"
|
||||
|
||||
namespace i2p
|
||||
|
@ -70,7 +71,7 @@ namespace http
|
|||
|
||||
private:
|
||||
|
||||
bool m_IsRunning;
|
||||
std::atomic_bool m_IsRunning;
|
||||
std::unique_ptr<std::thread> m_Thread;
|
||||
boost::asio::io_service m_Service;
|
||||
boost::asio::io_service::work m_Work;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue