Message169354
Yeah, I eventually came around to agreeing that it's better to stick with the Ensure/Release model. SwitchInterpreter gets messy when it comes to managing the lifecycle of temporary thread states.
So an EnsureEx/ReleaseEx pair with a new struct that includes both the GIL state info and either the previous thread state or an interpreter pointer sounds good to me. |
|
Date |
User |
Action |
Args |
2012-08-29 09:31:37 | ncoghlan | set | recipients:
+ ncoghlan, mhammond, pitrou, grahamd, asvetlov |
2012-08-29 09:31:37 | ncoghlan | set | messageid: <1346232697.62.0.74205268898.issue15751@psf.upfronthosting.co.za> |
2012-08-29 09:31:37 | ncoghlan | link | issue15751 messages |
2012-08-29 09:31:35 | ncoghlan | create | |
|