-
-
Save cogumbreiro/5554053 to your computer and use it in GitHub Desktop.
This file contains 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 | |
} | |
} | |
public class Fin1 { | |
public static def main(s:Array[String](1)) { | |
val f = Clock.make(); | |
val c = Clock.make(); | |
async clocked(c, f) { | |
c.advance(); | |
} | |
f.advance(); | |
} | |
} |
This file contains 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 async { | |
val c = Clock.make(); | |
async clocked(c) { | |
c.advance(); | |
} | |
} | |
} | |
} | |
public class Fin1 { | |
public static def main(s:Array[String](1)) { | |
val f = Clock.make(); | |
async clocked(f) { | |
val c = Clock.make(); | |
async clocked(c, f) { | |
c.advance(); | |
} | |
} | |
f.advance(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment