summaryrefslogtreecommitdiff
path: root/src/event
diff options
context:
space:
mode:
Diffstat (limited to 'src/event')
-rw-r--r--src/event/Thread.cxx4
-rw-r--r--src/event/Thread.hxx8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/event/Thread.cxx b/src/event/Thread.cxx
index 5b7f47adf..f7c2b9a0b 100644
--- a/src/event/Thread.cxx
+++ b/src/event/Thread.cxx
@@ -30,7 +30,7 @@ EventThread::Start()
}
void
-EventThread::Stop()
+EventThread::Stop() noexcept
{
if (thread.IsDefined()) {
event_loop.Break();
@@ -39,7 +39,7 @@ EventThread::Stop()
}
void
-EventThread::Run()
+EventThread::Run() noexcept
{
SetThreadName("io");
diff --git a/src/event/Thread.hxx b/src/event/Thread.hxx
index 00ed6307c..b9d2d72b5 100644
--- a/src/event/Thread.hxx
+++ b/src/event/Thread.hxx
@@ -36,20 +36,20 @@ public:
EventThread()
:event_loop(ThreadId::Null()), thread(BIND_THIS_METHOD(Run)) {}
- ~EventThread() {
+ ~EventThread() noexcept {
Stop();
}
- EventLoop &GetEventLoop() {
+ EventLoop &GetEventLoop() noexcept {
return event_loop;
}
void Start();
- void Stop();
+ void Stop() noexcept;
private:
- void Run();
+ void Run() noexcept;
};
#endif /* MAIN_NOTIFY_H */