0

I need to implement a lockless ring-buffer but I still haven't found any way of doing it without a kind of lock. I've searched the internet and all I found are ways using bits to say the memory is locked.

So, it is technically possible to do it without a lock?

  • So, have you read this: https://www.kernel.org/doc/Documentation/trace/ring-buffer-design.txt ? –  Sep 14 '17 at 10:43
  • Yes, but the problem is it uses bit flags to basically say "you can't read here, it's locked for now" – Juju17ification Sep 14 '17 at 10:52
  • Oh, I must have been inattentive. You've mentioned it in the question. –  Sep 14 '17 at 11:00

0 Answers0