lock-free ladder code