Message126351
A TLS based approach would presumably allow an embedding application like mod_wsgi to tinker with the state of threads created by naive modules that are unaware of the existence of subinterpreters.
That said, I don't see anything that prevents us from pursuing a TLS based override for the existing PyGILState functions later if the simpler, more explicit approach proves inadequate. As it stands, the new explicit calls allow something like mod_wsgi to define its *own* TLS location for the interpreter that is currently handling callbacks into Python, then use SWIG to generate PyGILState_*Ex calls in callback wrappers that reference that TLS interpreter state. |
|
Date |
User |
Action |
Args |
2011-01-15 23:41:31 | ncoghlan | set | recipients:
+ ncoghlan, loewis, amaury.forgeotdarc, pitrou, grahamd |
2011-01-15 23:41:31 | ncoghlan | set | messageid: <1295134891.43.0.141462766065.issue10915@psf.upfronthosting.co.za> |
2011-01-15 23:41:28 | ncoghlan | link | issue10915 messages |
2011-01-15 23:41:28 | ncoghlan | create | |
|