Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 673 Bytes

File metadata and controls

34 lines (30 loc) · 673 Bytes

Design principle

  • Block based ring buffer, fixed max block size when init
  • No lock, one producer (write), one consumer (read)
  • Empty: write index == read index
  • Full: write index + 1 == read index
  • each read/write never across block boundary

Structure

How to build

$ mkdir build && cd build

For generic Linux,

$ cmake ..

To support Xenomai cobalt,

$ cmake .. -DWITH_COBALT=ON
$ make

How to install

$ sudo make install

The library and header file will be put to the path /usr/local/.

Examples