cloudtoid / interprocess

A cross-platform shared memory queue for fast communication between processes (Interprocess Communication or IPC).
MIT License
184 stars 26 forks source link

Start Subscriber at Head Instead of Tail #4

Closed cocowalla closed 3 years ago

cocowalla commented 3 years ago

Hi, thanks for this nice library! 🙏

I was playing with the sample, and noticed that when the Subscriber starts, it reads back any existing queued messages first. What I'd like is for the Subscriber to only read new messages from that point onwards. Would that be possible?

prezaei commented 3 years ago

Hey, thanks. Have you tried adding a time stamp to your messages ignoring the ones that you are interested in? There is no easy way to do this in the library today.