Lock-free ring buffer
AssigneeDreamWorks Animation LLC
InventorKeith Jeffery
Life of this patent
Estimating the term…
Loading patent…
AssigneeDreamWorks Animation LLC
InventorKeith Jeffery
Estimating the term…
According to at least one embodiment, a method for writing, by a computing thread, data to a ring buffer is disclosed. The method includes determining whether the ring buffer is full. If the ring buffer is not full, the method further includes: reserving an element of the ring buffer for writing the data, wherein reserving the element includes incrementing a size variable corresponding to a number of stored elements in the ring buffer; reserving a portion of the ring buffer at which the data is to be written; and determining whether a state of the portion of the ring buffer is in change by at least one other computing thread. If the state is not in change, the method further includes: marking the state of the portion of the ring buffer as being in change by the computing thread; and writing the data to the portion of the ring buffer.
A method for writing, by a computing thread, data to a ring buffer, the method comprising:
A machine-readable non-transitory medium having stored thereon machine-executable instructions for writing, by a computing thread, data to a ring buffer, the instructions comprising:
A method for reading data from a ring buffer by a computing thread, the method comprising:
Dependencies are inferred from the claim text.