How do I create synchronization mechanisms in mana

2019-07-26 16:16发布

I'm trying to have 2 processes communicate via an stl container - so I've decided to use the managed shared memory. I'm trying to implement some synchronisation between them - an interprocess_mutex for a start with a scoped_lock - but I'm not having much luck. How is it supposed to be done?

1条回答
乱世女痞
2楼-- · 2019-07-26 16:54

I think the best solution is a container handler, and all access (getter/setter) to the container through the handler. So in this handler you could implement the synchronisation easily.

Salu2.

查看更多
登录 后发表回答