system/SignalFD: add "noexcept"
This commit is contained in:
parent
dd18fe34a7
commit
4218f56f6c
@ -33,7 +33,7 @@ SignalFD::Create(const sigset_t &mask)
|
||||
}
|
||||
|
||||
int
|
||||
SignalFD::Read()
|
||||
SignalFD::Read() noexcept
|
||||
{
|
||||
assert(fd.IsDefined());
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user