Actually, I am not sure. I have not thought about this in detail, but theoretically you do not need to increase count / decrease count for either of them -- you just swap content. I think swap() may be slightly faster, but I am not sure.