摘要 |
A method of managing data stored in a queue in memory comprises reading data from a head of the queue, and updating the location of a "latest read' pointer, separate from the memory blocks in which the data is stored, to a location corresponding to the end of the data. After transferring the data to a destination and upon receiving confirmation that the data transfer was successful, the location of a "committed read' pointer is updated to point to a location corresponding to the end of the data. This allows uncommitted data to be stored without requiring a separate area of memory.
|