xbmc/xbmc — comment on commit 4a42a82ddaead62f8b8f135b4fbb821930bab15c
File: xbmc/interfaces/python/XBPyThread.cpp line 338
By jimfcarroll:

Do you mean to unlock the python thread state for the duration of the graphics context lock being held? Because (afaict) this doesn't do that. I had written a class that acts as a guard that does what (I think) you're looking for but I think it's on one of my SWIG branches.