summaryrefslogtreecommitdiff
path: root/src/event
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-06 11:49:38 +0200
committerMax Kellermann <max@musicpd.org>2018-08-06 11:49:38 +0200
commit0c1a001622a06606b8a0c8ff4e168f0b6ffec3a6 (patch)
tree0bc96e4349094688ebdd2cdee57ac71d35d9f510 /src/event
parent148c38fbb9d9852d81a0d5c0c2b7cf651957c2a2 (diff)
system/Event{FD,Pipe}: throw exception on error
Diffstat (limited to 'src/event')
-rw-r--r--src/event/Loop.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event/Loop.hxx b/src/event/Loop.hxx
index f578243d5..70028f385 100644
--- a/src/event/Loop.hxx
+++ b/src/event/Loop.hxx
@@ -116,7 +116,11 @@ class EventLoop final : SocketMonitor
ThreadId thread = ThreadId::Null();
public:
+ /**
+ * Throws on error.
+ */
explicit EventLoop(ThreadId _thread);
+
EventLoop():EventLoop(ThreadId::GetCurrent()) {}
~EventLoop() noexcept;