appcelerator/titanium_mobile — pull request #1597 by sptramer (2012-03-08 02:49:10+00:00)
Title: [TIMOB-1542][TIMOB-7715][TIMOB-4538][TIMOB-1900] Make thread block processor effectively non-reentrant to prevent deadlocks.

This is a fairly basic fix, undoing the backout of changes from 1.8.2 and providing a (safe, but not perfect) way to ensure that deadlocks don't occur during main thread batch processing.

There is a significantly more complex fix being prepared which is mostly complete, but is not appropriate for a push near the end of a release cycle due to lack of time for testing (which is what caused the initial changes to be backed out in the first place).