mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
This commit is contained in:
parent
1fed3587b2
commit
6cb04c5bec
@ -48,7 +48,7 @@ struct GIL {
|
|||||||
explicit GIL() { _mutex.lock(); }
|
explicit GIL() { _mutex.lock(); }
|
||||||
~GIL() { _mutex.unlock(); }
|
~GIL() { _mutex.unlock(); }
|
||||||
};
|
};
|
||||||
#define PK_GLOBAL_SCOPE_LOCK() GIL _lock();
|
#define PK_GLOBAL_SCOPE_LOCK() GIL _lock;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define PK_THREAD_LOCAL
|
#define PK_THREAD_LOCAL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user