Commit f67e2b39 authored by Igor Chorążewicz's avatar Igor Chorążewicz
Browse files

mpsc_queue: refactor try_consume

- rename try_consume to try_consume_batch
- rename read_accessor to batch_type
- clear cachelines only after user callback executes:
  this allows iterating over the data arbitrary number of times
  (including 0)
- call user callback within a transaction to simplify logic
parent 322aeddc
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment