Loading tutorials
% operator, and basic Python or C syntax. It also assumes you have seen the head and tail indices from the previous chapter.2 min readRingBuffer from the earlier chapters: push, pop, a _count field, and (head + count) % capacity for the tail. It also assumes you know Python's unittest module. The tests below use only the standard library.2 min readpush and pop on a ring buffer with a count field, and that you know how modulo wraps an index. Here you move many items per call instead of one.2 min readstdatomic.h. Here you will turn the free-running-index ring into a queue that two threads share without a lock.3 min read