atomicqueue: add refcounting and docs
4 files changed