Use a lockless ringbuffer for the pending buffers
commit08629a4afc49c1ca0889e6e9ef0cd05c3a04cc71
authorChris Robinson <chris.kcat@gmail.com>
Sat, 21 Nov 2015 12:59:10 +0000 (21 04:59 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Sat, 21 Nov 2015 12:59:10 +0000 (21 04:59 -0800)
tree8cedf8b9d18805df51e734956b362e6d8e7a7a08
parent7cbca2648929dbabb5347523e5c2b0f93b94730a
Use a lockless ringbuffer for the pending buffers

Also use separate mutexes for waking, source, and context protection, to
avoid unnecessary blocking.
CMakeLists.txt
src/context.cpp
src/context.h
src/ringbuf.cpp [new file with mode: 0644]
src/ringbuf.h [new file with mode: 0644]