Created
January 7, 2017 16:24
-
-
Save chrisvest/69fe4daa1abf562c038718a365b5ce6c 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
class Handover { | |
private static class Node { | |
final Object value; | |
volatile Node next; | |
Node( Object value ) { | |
this.value = value; | |
} | |
} | |
private static final Node END = new Node( null ); | |
private final AtomicReference<Node> stack = new AtomicReference<>( END ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment