SignalHandler: add missing const

This commit is contained in:
Tom 2020-07-17 15:46:06 +02:00
parent cc4305ace3
commit e69a62cf9d

View File

@ -58,7 +58,7 @@ public:
SignalHandler& operator=(const SignalHandler& other) = delete;
SignalHandler& operator=(SignalHandler&& other) = delete;
int sigwait()
int sigwait() const
{
int signum = 0;
int ret = ::sigwait(&this->set_, &signum);
@ -68,7 +68,7 @@ public:
return signum;
}
int sigwait_handler(std::function<bool (int)> handler)
int sigwait_handler(std::function<bool (int)> handler) const
{
while( true )
{