Expand description
One owner process per resource; every other process connects to it.
A Rendezvous beside the resource elects the owner with an advisory lock
(<name>.lock) and lets every other process reach it over a local socket
(<name>.sock). The owner keeps its Ownership while it uses the resource, and
the lock is released when that drops, so the next process can take over even when
the owner died.
Structs§
- Connection
- Listener
- The owner’s end of the socket.
Listener::close(or drop) removes the socket so no process connects to an owner that stopped serving. - Ownership
- The right to use the resource, held until dropped.
- Rendezvous