]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/thread.cpp
Add move semantics to Variant
[libs/core.git] / source / core / thread.cpp
index e860d6758f9e048f070b67855e7d7810456e7c48..ad78d945cbd85e995d954ba6411964ccaa702421 100644 (file)
@@ -1,4 +1,4 @@
-#include <stdexcept>
+#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