}
}
+// This destructor throws (when it must not) when called by a thread
+// which is not the main one (e.g. a worker thread). This can't happen
+// but static analyzers e.g. cppcheck do not know this so they complain.
+// cppcheck-suppress throwInNoexceptFunction
IoServiceThreadPool::~IoServiceThreadPool() {
stop();
}
/// @brief Destructor.
///
/// Closes the socket.
+ // cppcheck-suppress throwInNoexceptFunction
~UnixDomainSocketImpl() {
close();
}
}
/// @brief Destructor
+ ///
+ /// This destructor throws (when it must not) when called by a thread
+ /// which is not the main one (e.g. a worker thread). This can't happen
+ /// but static analyzers e.g. cppcheck do not know this so they complain.
+ // cppcheck-suppress throwInNoexceptFunction
~ThreadPool() {
reset();
}
/// @brief Destructor.
///
/// Lock mutex object on destructor.
+ // cppcheck-suppress throwInNoexceptFunction
~UnlockGuard() {
lock_.lock();
}