Jody Hagins discusses interprocess queues in C++, focusing on issues that arise when using queues across processes, given C++'s limited process support. The talk covers message queues, not task queues, emphasizing message passing between components for system composability. Hagins addresses challenges in implementing single producer, single consumer queues in shared memory, particularly pointer sharing and API usage. The discussion includes separation of concerns, the need for code-enforced policies, and considerations for queue recovery in case of producer crashes. The presentation further explores advisory file locks, queue characteristics, and the importance of unique identifiers to prevent connection errors. It also delves into implicit lifetime types, atomic lock-free guarantees, and the implementation of a magic buffer for virtual memory management.
Sign in to continue reading, translating and more.
Continue