A method includes storing data in one of a plurality of memory slots in a queue.
Each memory slot is associated with a plurality of flags. The method also includes
toggling a first of the flags associated with the slot. The method further includes
retrieving the data from the memory slot. In addition, the method includes toggling
a second of the flags associated with the slot.