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
Hi
Is there any sample code for using capnproto on SHM (not by writing to fd). One process to modify messages and another process to read them (under the premise of thread safety). I hope to save the message directly on SHM without any serialization or deserialization required. Or use the specified memory to initialize capnproto msg, so I can share this memory between two processes.
Looking forward to recovery.
Thank you.
The text was updated successfully, but these errors were encountered:
There's no sample code, sorry. What you probably want to do is write custom subclasses of capnp::MessageReader and capnp::MessageBuilder which allocate their memory inside your shm region. It should be reasonably straightforward.
Hi
Is there any sample code for using capnproto on SHM (not by writing to fd). One process to modify messages and another process to read them (under the premise of thread safety). I hope to save the message directly on SHM without any serialization or deserialization required. Or use the specified memory to initialize capnproto msg, so I can share this memory between two processes.
Looking forward to recovery.
Thank you.
The text was updated successfully, but these errors were encountered: