Changeset 7f8fbe3


Ignore:
Timestamp:
Nov 20, 2020, 2:16:09 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
04994aa
Parents:
f9b2e73
Message:

Fix deadlock in cycle.go

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/cycle.go

    rf9b2e73 r7f8fbe3  
    1414        for true {
    1515                <- mine
    16                 next <- 0
     16                select {
     17                case next <- 0:
     18                default:
     19                }
    1720                count += 1
    1821                if  clock_mode && atomic.LoadInt32(&stop) == 1 { break }
Note: See TracChangeset for help on using the changeset viewer.