##// END OF EJS Templates
patches: release the GIL while applying the patch...
Boris Feld -
r36381:a2d11d23 default
parent child Browse files
Show More
@@ -109,7 +109,13 b' static PyObject *patches(PyObject *self,'
109 109 goto cleanup;
110 110 }
111 111 out = PyBytes_AsString(result);
112 r = mpatch_apply(out, in, inlen, patch);
112 /* clang-format off */
113 {
114 Py_BEGIN_ALLOW_THREADS
115 r = mpatch_apply(out, in, inlen, patch);
116 Py_END_ALLOW_THREADS
117 }
118 /* clang-format on */
113 119 if (r < 0) {
114 120 Py_DECREF(result);
115 121 result = NULL;
General Comments 0
You need to be logged in to leave comments. Login now