Release Python's global lock (GIL) before sleeping to allow other
threads to grab the lock as needed.
This commit is contained in:
@@ -339,7 +339,9 @@ retry:
|
||||
if (result != 0 && result != EBUSY)
|
||||
SWIG_ERROR_IF_NOT_SET(result);
|
||||
else if (result == EBUSY) {
|
||||
SWIG_PYTHON_THREAD_BEGIN_ALLOW;
|
||||
__wt_sleep(0, 10000);
|
||||
SWIG_PYTHON_THREAD_END_ALLOW;
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user