An open API service indexing awesome lists of open source software.

https://github.com/mitghi/lfring

Lock-Free MRMW Ring Buffer. Atomic Slice.
https://github.com/mitghi/lfring

Last synced: 12 months ago
JSON representation

Lock-Free MRMW Ring Buffer. Atomic Slice.

Awesome Lists containing this project

README

          

[![GoDoc](https://godoc.org/github.com/mitghi/lfring?status.svg)](https://godoc.org/github.com/mitghi/lfring)

# lfring

Lock-Free MRMW Ring Buffer. It uses an implementation of Multi-Word Compare-and-Swap atomic operation, removes references by setting the associated slot to `nil` without losing consistency; ensures ordering and garbage collection.

The algorithm is from following Paper:
```
Paper: A Practical Multi-Word Compare-and-Swap Operation
by Timothy L. Harris, Keir Fraser and Ian A. Pratt;
University of Cambridge Computer Laboratory, Cambridge,
UK.
```