Skip to content

Commit f909f6e

Browse files
committed
fix: gil alloc
1 parent c999a0e commit f909f6e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pyWrapper.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ int PyWrapper::wrapperOnceExecAsync(const char *usrTag, std::map <std::string, s
350350
if (cb != nullptr) {
351351
SetSidCallBack(cb, sid);
352352
}
353-
py::gil_scoped_acquire acquire;
354353

355354
int ret = 0;
356355
params["sid"] = sid;

wrapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ int WrapperAPI wrapperExecFree(const char *usrTag, pDataList *respData) {
428428
int WrapperAPI
429429
wrapperExecAsync(const char *usrTag, pParamList params, pDataList reqData, wrapperCallback callback, int timeout,
430430
unsigned int psrIds[], int psrCnt) {
431+
py::gil_scoped_acquire acquire;
431432
int ret = 0;
432433
std::string sid = "";
433434
for (pParamList sidP = params; sidP != NULL; sidP = sidP->next) {

0 commit comments

Comments
 (0)