Commit 82c66ce0 authored by Max Kellermann's avatar Max Kellermann

thread/Thread: Start() returns void

Since we switched to C++ exceptions, there is no code path which returns false.
parent 9324fbf9
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "java/Global.hxx" #include "java/Global.hxx"
#endif #endif
bool void
Thread::Start(void (*_f)(void *ctx), void *_ctx) Thread::Start(void (*_f)(void *ctx), void *_ctx)
{ {
assert(!IsDefined()); assert(!IsDefined());
...@@ -56,8 +56,6 @@ Thread::Start(void (*_f)(void *ctx), void *_ctx) ...@@ -56,8 +56,6 @@ Thread::Start(void (*_f)(void *ctx), void *_ctx)
creating = false; creating = false;
#endif #endif
#endif #endif
return true;
} }
void void
......
...@@ -89,7 +89,7 @@ public: ...@@ -89,7 +89,7 @@ public:
#endif #endif
} }
bool Start(void (*f)(void *ctx), void *ctx); void Start(void (*f)(void *ctx), void *ctx);
void Join(); void Join();
private: private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment