> In any case, the big issue I'm facing right now is sync on the
> consumer side. I'm using posix's clock_nanosleep to run the consumer
> thread every ((1 / fps) * 10) nanoseconds, but it's running
> slightly slow. I've even stopped using the read lock on the producer's
> side in case write
OK, a preliminary version of my module is functional. It's way away
from production grade:
* the producer segfaults on exit
* if the producer dies while holding the lock, the whole thing freezes
* if the consumer restarts, the running producer(s)'s reference to
shared memory will become invalid
B