blueloveTH hace 3 años
padre
commit
6fafe4aa6b
Se han modificado 2 ficheros con 3 adiciones y 4 borrados
  1. 1 1
      src/obj.h
  2. 2 3
      src/vm.h

+ 1 - 1
src/obj.h

@@ -5,7 +5,7 @@
 typedef int64_t _Int;
 typedef double _Float;
 
-#define PK_VERSION "0.3.9"
+#define PK_VERSION "0.4.0"
 
 class CodeObject;
 class BasePointer;

+ 2 - 3
src/vm.h

@@ -1115,9 +1115,8 @@ class ThreadedVM : public VM {
 
     void __deleteThread(){
         if(_thread != nullptr){
-            if(_state == THREAD_RUNNING || _state == THREAD_SUSPENDED) {
-                keyboardInterrupt();
-                while(_state != THREAD_FINISHED);
+            if(_state == THREAD_RUNNING || _state == THREAD_SUSPENDED){
+                UNREACHABLE();
             }
             _thread->join();
             delete _thread;