You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
Your project looks promising. Can it work with shared memory? We would like to have a ring buffer between two different processes to share images and metadata
The text was updated successfully, but these errors were encountered:
I suspect the short answer is "no"; but can you share more of your requirements?
Do the two processes see the ringbuffer as having the same address, or is it mapped differently in each process? For example, if Process A thinks &buffer.front() == (void*)0x00128748, are we guaranteed that Process B thinks &buffer.front() == (void*)0x00128748, or might it happen that in Process B &buffer.front() == (void*)0x07CE8748?
Do you require the ringbuffer itself to handle synchronization, or do you have external synchronization (e.g. a mutex)? For example, if Process A is calling push() at the same time that Process B is calling pop(), that probably won't work, as written.
Suppose the ringbuffer becomes completely full and then Process A tries to push onto it again. Can you assume that that's never going to happen (i.e., if it does happen, the behavior is undefined)? Or must the ringbuffer somehow support that situation? (If the latter: ring_span_litedefinitely won't work, as written.)
Hey,
Your project looks promising. Can it work with shared memory? We would like to have a
ring buffer
between two differentprocesses
to shareimages
andmetadata
The text was updated successfully, but these errors were encountered: