system/SignalFD: add "noexcept"

This commit is contained in:
Max Kellermann 2018-08-06 11:56:13 +02:00
parent dd18fe34a7
commit 4218f56f6c
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ SignalFD::Create(const sigset_t &mask)
}
int
SignalFD::Read()
SignalFD::Read() noexcept
{
assert(fd.IsDefined());

View File

@ -39,11 +39,11 @@ public:
*/
void Create(const sigset_t &mask);
void Close() {
void Close() noexcept {
fd.Close();
}
int Get() const {
int Get() const noexcept {
return fd.Get();
}
@ -52,7 +52,7 @@ public:
* signal number on success or -1 if there are no more
* signals.
*/
int Read();
int Read() noexcept;
};
#endif