db/update/InotifySource: add noexcept
This commit is contained in:
parent
fc3861b421
commit
a8e23c4140
@ -98,7 +98,7 @@ InotifySource::Add(const char *path_fs, unsigned mask)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
InotifySource::Remove(unsigned wd)
|
InotifySource::Remove(unsigned wd) noexcept
|
||||||
{
|
{
|
||||||
auto ifd = GetSocket().ToFileDescriptor();
|
auto ifd = GetSocket().ToFileDescriptor();
|
||||||
int ret = inotify_rm_watch(ifd.Get(), wd);
|
int ret = inotify_rm_watch(ifd.Get(), wd);
|
||||||
|
@ -42,7 +42,7 @@ public:
|
|||||||
InotifySource(EventLoop &_loop,
|
InotifySource(EventLoop &_loop,
|
||||||
mpd_inotify_callback_t callback, void *ctx);
|
mpd_inotify_callback_t callback, void *ctx);
|
||||||
|
|
||||||
~InotifySource() {
|
~InotifySource() noexcept {
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ public:
|
|||||||
*
|
*
|
||||||
* @param wd the watch descriptor returned by mpd_inotify_source_add()
|
* @param wd the watch descriptor returned by mpd_inotify_source_add()
|
||||||
*/
|
*/
|
||||||
void Remove(unsigned wd);
|
void Remove(unsigned wd) noexcept;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool OnSocketReady(unsigned flags) noexcept override;
|
bool OnSocketReady(unsigned flags) noexcept override;
|
||||||
|
Loading…
Reference in New Issue
Block a user