fixed threading + lazy

This commit is contained in:
roberto@quantal64
2012-09-14 15:52:23 +02:00
parent 956cb1f13c
commit c2cf1f3a62
+10
View File
@@ -1050,6 +1050,11 @@ void uwsgi_python_init_apps() {
struct http_status_codes *http_sc;
// lazy ?
if (uwsgi.mywid > 0) {
UWSGI_GET_GIL;
}
#ifndef UWSGI_PYPY
// prepare for stack suspend/resume
if (uwsgi.async > 1) {
@@ -1170,6 +1175,11 @@ next:
}
}
// lazy ?
if (uwsgi.mywid > 0) {
UWSGI_RELEASE_GIL;
}
}
void uwsgi_python_master_fixup(int step) {