17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-04 19:59:25 +01:00

refactor(sonar): rely on class template argument deduction (cpp:S6012)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jerrrrycho
2026-10-10 16:37:55 +02:00
parent 89583b2569
commit 7c0f81fb30
7 changed files with 12 additions and 12 deletions

View File

@@ -426,12 +426,12 @@ class condition_variable
// methods
void wait()
{
std::unique_lock<std::mutex> lock(m_mutex);
std::unique_lock lock(m_mutex);
m_condition.wait(lock, [this]() { return m_spurious == false; });
}
template <class Rep_, class Period_> void wait_for(const std::chrono::duration<Rep_, Period_> &Time)
{
std::unique_lock<std::mutex> lock(m_mutex);
std::unique_lock lock(m_mutex);
m_condition.wait_for(lock, Time, [this]() { return m_spurious == false; });
}
void notify_one()