dataqueues.cc diamond implementation