[sgen] Make sure workers process jobs only if they are running (#4974)
authorVlad Brezae <brezaevlad@gmail.com>
Wed, 7 Jun 2017 09:58:54 +0000 (12:58 +0300)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2017 09:58:54 +0000 (12:58 +0300)
commit42311595aecc9ab7a96cc415116e35c7fcac8a5c
treeac4830a8bcb14f7fc3b56a949cbf182ab6a0c551
parent0526617e0a2643d0e1bff72af3dff162dc739bb0
[sgen] Make sure workers process jobs only if they are running (#4974)

This simplifies logic and prevents serial context being used by multiple workers at the same time.
mono/sgen/sgen-workers.c