BLUELOVETH 2023-07-23 15:06:21 +08:00 committed by GitHub
parent 1fed3587b2
commit 6cb04c5bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ struct GIL {
explicit GIL() { _mutex.lock(); }
~GIL() { _mutex.unlock(); }
};
#define PK_GLOBAL_SCOPE_LOCK() GIL _lock();
#define PK_GLOBAL_SCOPE_LOCK() GIL _lock;
#else
#define PK_THREAD_LOCAL
@ -154,4 +154,4 @@ inline bool is_both_float(PyObject* a, PyObject* b) noexcept {
inline PyObject* const PY_NULL = (PyObject*)0b000011; // tagged null
inline PyObject* const PY_OP_CALL = (PyObject*)0b100011;
inline PyObject* const PY_OP_YIELD = (PyObject*)0b110011;
} // namespace pkpy
} // namespace pkpy