Fix for 14005. GIL wasn't managed correctly in python spawned threads #2115

Merged
merged 1 commit into from Jan 25, 2013

Projects

None yet

3 participants

@jimfcarroll
Member

In threads spawned within python the PyContext was never used. In those cases the releasing/acquiring of the Gil was simply skipped. Therefore scripts that looped over 'sleep' from a python created thread (a typical pattern in python services) would block all other python threads forever.

Closes #14005

Jim Carroll In threads spawned within python the PyContext was never used. In tho…
…se cases the releasing/acquiring of the Gil was simply skipped. Therefore scripts that looped over 'sleep' from a python created thread (a typical pattern in python services) would block all other python threads forever.
415fbde
@ronie
Member
ronie commented Jan 24, 2013

fixes all issues i came across so far.
didn't spot any regressions either.

@davilla davilla merged commit d0de086 into xbmc:master Jan 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment