jbendes / lockfree

A collection of some lockfree datastructures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lockfree

A collection of some lockfree datastructures

Datastructures

  • Pool: A simple lockfree memory/object pool based on the Treiber Stack
  • Queue: A simple lockfree MPMC queue based very roughly on Michael&Scott queues
  • Bcast: A simple lockfree MPMC "broadcast-y" fan-out pub-sub queue based even more roughly on Michael&Scott queues

Properties

  • Lockfree
  • Non-allocating (after init)
  • Fixed-size
  • Cache-efficent flat structures
  • Agnostic to in-process memory or shared-memory
  • Crash-safe (kill -9 cannot cause deadlocks, livelocks, corruption, etc)

About

A collection of some lockfree datastructures


Languages

Language:C 91.7%Language:Meson 7.8%Language:Shell 0.5%