-#include <stdexcept>
+#include "except.h"
#include "thread.h"
#include "thread_private.h"
void Thread::launch()
{
if(_state>=RUNNING)
- throw logic_error("already launched");
+ throw already_called("Thread::launch");
platform_launch();
_state = RUNNING;
thread->platform_setname();
thread->main();
thread->_state = FINISHED;
- return nullptr;
+ return 0;
}
} // namespace Msp