1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-30 07:23:07 +03:00

Enable -Wsuggest-override if supported by the compiler.

This commit is contained in:
Teemu Ollakka
2020-10-22 17:31:21 +03:00
parent d1482feb32
commit 7245db4704
4 changed files with 62 additions and 44 deletions

View File

@ -20,6 +20,7 @@
#ifndef WSREP_CONDITION_VARIABLE_HPP
#define WSREP_CONDITION_VARIABLE_HPP
#include "compiler.hpp"
#include "lock.hpp"
#include <cstdlib>
@ -59,17 +60,17 @@ namespace wsrep
::abort();
}
}
void notify_one()
void notify_one() WSREP_OVERRIDE
{
(void)pthread_cond_signal(&cond_);
}
void notify_all()
void notify_all() WSREP_OVERRIDE
{
(void)pthread_cond_broadcast(&cond_);
}
void wait(wsrep::unique_lock<wsrep::mutex>& lock)
void wait(wsrep::unique_lock<wsrep::mutex>& lock) WSREP_OVERRIDE
{
if (pthread_cond_wait(
&cond_,