system/Event{FD,Pipe}: add "noexcept"

This commit is contained in:
Max Kellermann
2018-08-06 11:57:40 +02:00
parent 0c1a001622
commit 5b09504a71
4 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -36,12 +36,12 @@ public:
*/
EventPipe();
~EventPipe();
~EventPipe() noexcept;
EventPipe(const EventPipe &other) = delete;
EventPipe &operator=(const EventPipe &other) = delete;
int Get() const {
int Get() const noexcept {
return fds[0];
}
@@ -49,13 +49,13 @@ public:
* Checks if Write() was called at least once since the last
* Read() call.
*/
bool Read();
bool Read() noexcept;
/**
* Wakes up the reader. Multiple calls to this function will
* be combined to one wakeup.
*/
void Write();
void Write() noexcept;
};
#endif /* MAIN_NOTIFY_H */