mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
up
This commit is contained in:
parent
40283067a3
commit
ae3248d865
@ -1,4 +1,4 @@
|
|||||||
## 0.5.0+5
|
## 0.5.0+6
|
||||||
|
|
||||||
+ Fix a bug of crash when using multi-thread
|
+ Fix a bug of crash when using multi-thread
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: pocketpy
|
name: pocketpy
|
||||||
description: A lightweight Python interpreter for game engines.
|
description: A lightweight Python interpreter for game engines.
|
||||||
version: 0.5.0+5
|
version: 0.5.0+6
|
||||||
homepage: https://pocketpy.dev
|
homepage: https://pocketpy.dev
|
||||||
repository: https://github.com/blueloveth/pocketpy
|
repository: https://github.com/blueloveth/pocketpy
|
||||||
|
|
||||||
|
@ -2307,7 +2307,7 @@ public:
|
|||||||
|
|
||||||
namespace pkpy {
|
namespace pkpy {
|
||||||
const uint8_t MAX_POOLING_N = 10;
|
const uint8_t MAX_POOLING_N = 10;
|
||||||
static std::vector<PyVar*>* _poolArgList = new std::vector<PyVar*>[MAX_POOLING_N];
|
static thread_local std::vector<PyVar*>* _poolArgList = new std::vector<PyVar*>[MAX_POOLING_N];
|
||||||
|
|
||||||
class ArgList {
|
class ArgList {
|
||||||
PyVar* _args = nullptr;
|
PyVar* _args = nullptr;
|
||||||
@ -2428,7 +2428,7 @@ namespace pkpy {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const ArgList& noArg(){
|
const ArgList& noArg(){
|
||||||
static ArgList ret(0);
|
static const ArgList ret(0);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3865,7 +3865,7 @@ public:
|
|||||||
Frame(const CodeObject* code, PyVar _module, PyVarDict&& locals)
|
Frame(const CodeObject* code, PyVar _module, PyVarDict&& locals)
|
||||||
: code(code), _module(_module), f_locals(std::move(locals)) {
|
: code(code), _module(_module), f_locals(std::move(locals)) {
|
||||||
|
|
||||||
static uint64_t frame_id = 1;
|
static thread_local uint64_t frame_id = 1;
|
||||||
id = frame_id++;
|
id = frame_id++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 5e4cc4c44a5b65a9ea53e038ffb7c83591d27698
|
Subproject commit 489e88e885effa484134f98db933ca45659c2026
|
@ -143,7 +143,7 @@ public:
|
|||||||
Frame(const CodeObject* code, PyVar _module, PyVarDict&& locals)
|
Frame(const CodeObject* code, PyVar _module, PyVarDict&& locals)
|
||||||
: code(code), _module(_module), f_locals(std::move(locals)) {
|
: code(code), _module(_module), f_locals(std::move(locals)) {
|
||||||
|
|
||||||
static uint64_t frame_id = 1;
|
static thread_local uint64_t frame_id = 1;
|
||||||
id = frame_id++;
|
id = frame_id++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ public:
|
|||||||
|
|
||||||
namespace pkpy {
|
namespace pkpy {
|
||||||
const uint8_t MAX_POOLING_N = 10;
|
const uint8_t MAX_POOLING_N = 10;
|
||||||
static std::vector<PyVar*>* _poolArgList = new std::vector<PyVar*>[MAX_POOLING_N];
|
static thread_local std::vector<PyVar*>* _poolArgList = new std::vector<PyVar*>[MAX_POOLING_N];
|
||||||
|
|
||||||
class ArgList {
|
class ArgList {
|
||||||
PyVar* _args = nullptr;
|
PyVar* _args = nullptr;
|
||||||
@ -185,7 +185,7 @@ namespace pkpy {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const ArgList& noArg(){
|
const ArgList& noArg(){
|
||||||
static ArgList ret(0);
|
static const ArgList ret(0);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user