mono/mono — pull request #275 by bholmes (2012-04-18 16:31:07+00:00)
Title: Work Stealing Queue Deadlock fix.

Check that all the work stealing queues are empty before entering the wait loop.

If another thread adds a wsq job after the previous call to dequeue_or_steal
but before the InterlockedIncrement call deadlock can occur.