| 88 | } |
| 89 | |
| 90 | SafeConnection::Lock::Lock(std::shared_ptr<SafeConnection> connection) |
| 91 | : mSafeConnection(std::move(connection)) |
| 92 | { |
| 93 | if (mSafeConnection) |
| 94 | mLock = std::unique_lock { mSafeConnection->mConnectionMutex }; |
| 95 | } |
| 96 | |
| 97 | Connection* SafeConnection::Lock::operator->() noexcept |
| 98 | { |
no test coverage detected