diff options
author | Max Kellermann <max@duempel.org> | 2016-06-17 19:06:30 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-06-17 19:11:20 +0200 |
commit | d3c7fac60619f5cddd6550a9caa0bea67d6557e0 (patch) | |
tree | 62ed96fb6606564759314899d2b3c37debb71ff3 /src/IOThread.cxx | |
parent | fea3f6cc72089ca5736e74450bb5ff51581ec146 (diff) |
thread/Thread: throw std::system_error on error
Diffstat (limited to 'src/IOThread.cxx')
-rw-r--r-- | src/IOThread.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/IOThread.cxx b/src/IOThread.cxx index b0079083d..4fbe837f7 100644 --- a/src/IOThread.cxx +++ b/src/IOThread.cxx @@ -24,8 +24,6 @@ #include "thread/Thread.hxx" #include "thread/Name.hxx" #include "event/Loop.hxx" -#include "system/FatalError.hxx" -#include "util/Error.hxx" #include <assert.h> @@ -75,10 +73,7 @@ io_thread_start() assert(!io.thread.IsDefined()); const ScopeLock protect(io.mutex); - - Error error; - if (!io.thread.Start(io_thread_func, nullptr, error)) - FatalError(error); + io.thread.Start(io_thread_func, nullptr); } void |