mirror of
https://github.com/pocketpy/pocketpy
synced 2025-12-07 18:50:19 +00:00
up
This commit is contained in:
parent
c3dc23dc64
commit
6fafe4aa6b
@ -5,7 +5,7 @@
|
|||||||
typedef int64_t _Int;
|
typedef int64_t _Int;
|
||||||
typedef double _Float;
|
typedef double _Float;
|
||||||
|
|
||||||
#define PK_VERSION "0.3.9"
|
#define PK_VERSION "0.4.0"
|
||||||
|
|
||||||
class CodeObject;
|
class CodeObject;
|
||||||
class BasePointer;
|
class BasePointer;
|
||||||
|
|||||||
5
src/vm.h
5
src/vm.h
@ -1115,9 +1115,8 @@ class ThreadedVM : public VM {
|
|||||||
|
|
||||||
void __deleteThread(){
|
void __deleteThread(){
|
||||||
if(_thread != nullptr){
|
if(_thread != nullptr){
|
||||||
if(_state == THREAD_RUNNING || _state == THREAD_SUSPENDED) {
|
if(_state == THREAD_RUNNING || _state == THREAD_SUSPENDED){
|
||||||
keyboardInterrupt();
|
UNREACHABLE();
|
||||||
while(_state != THREAD_FINISHED);
|
|
||||||
}
|
}
|
||||||
_thread->join();
|
_thread->join();
|
||||||
delete _thread;
|
delete _thread;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user