Implementing a semaphore in the MPMC queue to wake up consumers

This commit is contained in:
2026-03-09 16:44:43 +01:00
parent a299c4a1e1
commit 7d8b4addb7
3 changed files with 23 additions and 19 deletions

View File

@@ -27,3 +27,5 @@ Making the hashing buffer reusable instead of malloc every file
Implementing a general purpose arena to replace small allocations
Small improvements of the LF MPMC queue
Making the LF MPMC queue generic and in a seperate header file
4.0: Implementing a semaphore in the LF MPMC queue to wake up consumers when there is items in the queue instead of spinning (busy waiting) or sleeping, this makes the queue spin only when the slots are transitionning (multiple consumers claiming the same slot)