Skip to content

Commit ca5cf69

Browse files
committed
remove unnecessary lock
1 parent 2dd31c1 commit ca5cf69

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Release/src/http/client/http_client_asio.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,12 @@ class asio_connection_pool
274274
template <typename TimeoutHandler>
275275
void start_pool_timer(const TimeoutHandler &handler)
276276
{
277-
//std::lock_guard<std::mutex> lg(m_pool_timer_mutex);
278277
m_pool_timer.expires_from_now(boost::posix_time::milliseconds(m_pool_timeout_secs * 1000));
279278
m_pool_timer.async_wait(handler);
280279
}
281280

282281
void cancel_pool_timer()
283282
{
284-
//std::lock_guard<std::mutex> lg(m_pool_timer_mutex);
285283
m_pool_timer.cancel();
286284
}
287285

@@ -355,9 +353,7 @@ class asio_connection_pool
355353
std::mutex m_connections_mutex;
356354

357355
const int m_pool_timeout_secs;
358-
std::mutex m_pool_timer_mutex;
359356
boost::asio::deadline_timer m_pool_timer;
360-
//std::atomic<int> m_use_count;
361357
int m_use_count;
362358
};
363359

0 commit comments

Comments
 (0)