thread/Thread: Start() returns void
Since we switched to C++ exceptions, there is no code path which returns false.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user