X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fthread.cpp;h=ad78d945cbd85e995d954ba6411964ccaa702421;hb=HEAD;hp=e860d6758f9e048f070b67855e7d7810456e7c48;hpb=41363aed34382386f915f17c1a961750b4fdcb14;p=libs%2Fcore.git diff --git a/source/core/thread.cpp b/source/core/thread.cpp index e860d67..ad78d94 100644 --- a/source/core/thread.cpp +++ b/source/core/thread.cpp @@ -1,4 +1,4 @@ -#include +#include "except.h" #include "thread.h" #include "thread_private.h" @@ -39,7 +39,7 @@ void Thread::kill() void Thread::launch() { if(_state>=RUNNING) - throw logic_error("already launched"); + throw already_called("Thread::launch"); platform_launch(); _state = RUNNING; @@ -51,7 +51,7 @@ ThreadReturn THREAD_CALL Thread::Private::main_wrapper(void *arg) thread->platform_setname(); thread->main(); thread->_state = FINISHED; - return nullptr; + return 0; } } // namespace Msp