thread/Thread: Start() returns void

Since we switched to C++ exceptions, there is no code path which
returns false.
This commit is contained in:
Max Kellermann
2017-02-10 22:41:29 +01:00
parent 9324fbf921
commit 82c66ce078
2 changed files with 2 additions and 4 deletions

View File

@@ -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)
creating = false; creating = false;
#endif #endif
#endif #endif
return true;
} }
void void

View File

@@ -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: