Fixed shm/CMakeLists.txt.
Ringbuffer implementation for threads.
A stub of ringbuffer implementation based on shared memory (for usage in separate processes).