Derp, not sure what the point of the AtomicLong was, given that it was only visible inside a single thread.