Release Python's global lock (GIL) before sleeping to allow other

threads to grab the lock as needed.
This commit is contained in:
Don Anderson
2015-01-08 19:14:33 -05:00
parent d9621cb4ba
commit 619d26de6f

View File

@@ -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;
}
}