[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#627561: ITP: libpacketstream0 -- interface of the 'packetstream' thread-safe ring buffer



Package: wnpp
Severity: wishlist
Owner: Arand Nash <ienorand@gmail.com>

* Package name    : libpacketstream0
  Version         : 0.1.4-1
  Upstream Author : Pyry Haulos <pyry.haulos@gmail.com>
* URL             : https://github.com/nullkey/packetstream
* License         : Zlib
  Programming Lang: C
  Description     : interface of the 'packetstream' thread-safe ring buffer

Packetstream is basically a solution to the Producer-Consumer problem with a fixed size ring buffer and variable item (=packet) size. This implementation
 follows classic solution using semaphores with a few exceptions:
 1. Since the maximum amount of items the buffer can hold is not known,
 semaphore "empty" (=read_packets) is only decreased when producer needs to
 remove a consumed item to have space for a new one.
2. Multiple producers 1..n can simultaneously write to the buffer providing that there is enough free space and all producers 1..n-1 have set a size for
 their items.
3. Multiple consumers 1..n can simultaneously read from the buffer if there is
 1..n ready items.

I am packging this because it is a build dependency of glc:
https://github.com/nullkey/glc which I also hope to package, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627560





Reply to: