Skip to content

Fields ought to be final in LockFreeTicketVendor and its State #34

Max-Hailperin opened this Issue Sep 23, 2013 · 0 comments

1 participant


In Figure 4.26, all three fields of the LockFreeTicketVendor class and both fields of the State class within it ought to be declared final. This ensures their initialization will be visible to other threads before the constructor exits, as well as making clear that none of these fields should ever be assigned a new value.

@Max-Hailperin Max-Hailperin added a commit that closed this issue Jul 11, 2015
@Max-Hailperin fixes #34 1823977
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.