Skip to content
  • Klaus Aehlig's avatar
    Fix a race in rescheduling jobs · 50d756af
    Klaus Aehlig authored
    
    
    When handling the queue, in particular at analyzing job dependencies,
    we assume that all non-finalized jobs are present in the Queue data
    structure. When rescheduling jobs we move them from the running part
    of the queue to the scheduled part again. In order to comply with the
    just mentioned in variant, we need to do so in a single atomic
    modification instead of sequentially modifying the data structure.
    
    Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
    Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
    50d756af