[libc][NFC] Simplifly inbox and outbox state handling
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 15 May 2023 17:40:15 +0000 (12:40 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 16 May 2023 18:12:00 +0000 (13:12 -0500)
commit64d169c74d2cd3730893dffacd0061b937e55169
tree6ff54824c132786fcbd35571b6ed3a57104ff77c
parentf8499d5709e37b4e9a6d2a39c385cfd2c00bad6e
[libc][NFC] Simplifly inbox and outbox state handling

Currently we use a template parameter called `InvertInbox` to invert the
inbox when we load it. This is more easily understood as a static check
on whether or not the process running it is the server. Inverting the
inbox makes the states 1 0 and 0 1 own the buffer, so it's easier to
simply say that the server own the buffer if in != out. Also clean up some of
the comments.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D150365
libc/src/__support/RPC/rpc.h