system/SignalFD: add "noexcept"
This commit is contained in:
parent
dd18fe34a7
commit
4218f56f6c
@ -33,7 +33,7 @@ SignalFD::Create(const sigset_t &mask)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
SignalFD::Read()
|
SignalFD::Read() noexcept
|
||||||
{
|
{
|
||||||
assert(fd.IsDefined());
|
assert(fd.IsDefined());
|
||||||
|
|
||||||
|
@ -39,11 +39,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
void Create(const sigset_t &mask);
|
void Create(const sigset_t &mask);
|
||||||
|
|
||||||
void Close() {
|
void Close() noexcept {
|
||||||
fd.Close();
|
fd.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
int Get() const {
|
int Get() const noexcept {
|
||||||
return fd.Get();
|
return fd.Get();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ public:
|
|||||||
* signal number on success or -1 if there are no more
|
* signal number on success or -1 if there are no more
|
||||||
* signals.
|
* signals.
|
||||||
*/
|
*/
|
||||||
int Read();
|
int Read() noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user