adopting lock-less algorithm.

Is this safe enough?