diff options
Diffstat (limited to 'src/thread.h')
-rw-r--r-- | src/thread.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/thread.h b/src/thread.h index f4a16d4e0..f45694930 100644 --- a/src/thread.h +++ b/src/thread.h @@ -14,10 +14,6 @@ #include <system_error> #include <thread> -/** Signal used for signalling we knowingly want to end the thread. */ -class OTTDThreadExitSignal { }; - - /** * Sleep on the current thread for a defined time. * @param milliseconds Time to sleep for in milliseconds. @@ -54,7 +50,6 @@ inline bool StartNewThread(std::thread *thr, const char *name, TFn&& _Fx, TArgs& try { /* Call user function with the given arguments. */ F(A...); - } catch (OTTDThreadExitSignal&) { } catch (...) { NOT_REACHED(); } |