set in_request per core

This commit is contained in:
roberto@debian32
2011-05-11 18:47:42 +02:00
parent 11b2e4b430
commit 46eb832cc7
6 changed files with 60 additions and 82 deletions
-3
View File
@@ -874,7 +874,6 @@ PyObject *py_uwsgi_lock(PyObject * self, PyObject * args) {
if (uwsgi.numproc > 1 && uwsgi.mypid != uwsgi.workers[0].pid) {
#endif
uwsgi_lock(uwsgi.user_lock);
UWSGI_SET_LOCKING;
}
Py_INCREF(Py_None);
@@ -884,7 +883,6 @@ PyObject *py_uwsgi_lock(PyObject * self, PyObject * args) {
PyObject *py_uwsgi_unlock(PyObject * self, PyObject * args) {
uwsgi_unlock(uwsgi.user_lock);
UWSGI_UNSET_LOCKING;
Py_INCREF(Py_None);
return Py_None;
@@ -2007,7 +2005,6 @@ PyObject *py_uwsgi_reload(PyObject * self, PyObject * args) {
PyObject *py_uwsgi_set_blocking(PyObject * self, PyObject * args) {
if (uwsgi.master_process) {
uwsgi.workers[uwsgi.mywid].status |= UWSGI_STATUS_BLOCKING;
Py_INCREF(Py_True);
return Py_True;
}