diff --git a/include/sqlpp11/connection_pool.h b/include/sqlpp11/connection_pool.h index c583b7a2..6fb044d5 100644 --- a/include/sqlpp11/connection_pool.h +++ b/include/sqlpp11/connection_pool.h @@ -90,7 +90,7 @@ namespace sqlpp template typename connection_pool::_pooled_connection_t connection_pool::pool_core::get() { - std::unique_lock lock{_mutex}; + std::unique_lock lock{_mutex}; if (_handles.empty()) { lock.unlock(); return _pooled_connection_t{_connection_config, this->shared_from_this()}; @@ -108,7 +108,7 @@ namespace sqlpp template void connection_pool::pool_core::put(_handle_ptr_t& handle) { - std::unique_lock lock{_mutex}; + std::unique_lock lock{_mutex}; if (_handles.full ()) { _handles.set_capacity (_handles.capacity () + 5); } @@ -118,7 +118,7 @@ namespace sqlpp template std::size_t connection_pool::pool_core::available() { - std::unique_lock lock{_mutex}; + std::unique_lock lock{_mutex}; return _handles.size(); }