This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Fin { | |
public static def main(s:Array[String](1)) { | |
finish { | |
val c = Clock.make(); | |
async clocked(c) { | |
c.advance(); // deadlocks here | |
} | |
} // deadlocks here | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Fin1 { | |
public static def main(s:Array[String](1)) { | |
val f = Clock.make(); | |
val c = Clock.make(); | |
async clocked(c, f) { | |
Clock.advanceAll(); // deadlocks here | |
} | |
//f.advance(); | |
} | |
} |