Bug fixes in lock free MPMC queue

Fix bug slots used before initialization,compare and swap is protecting
updating committed, but it is not protecting the memory initialization.
Adding atomic_flag commit_lock to protect against that

Fix bug multiple threads committing at the same time, fixed by using
atomic_flag commit_lock and re-checking committed after acquiring the
lock

Reorder helper functions
This commit is contained in:
2026-03-07 11:36:11 +01:00
parent 4967591ff8
commit 417dbad374
4 changed files with 82 additions and 55 deletions

Binary file not shown.