mailbox_client: revise message receive for race-free use

The previous structure for receiving mailbox messages was racey--it
allowed a reply to be sent without a receive posted. Rewrite the api
to ensure this cannot happen.

Fix: 300251123

Change-Id: Ied0e697f71c88de10e53217ff2ee02af28263673
2 files changed
tree: 47f39bffb02bb6efbf37537de41ba941baf328a9
  1. app/
  2. blob_fs/
  3. capsules/
  4. config/
  5. hal/
  6. platform/
  7. utils/
  8. .gitignore
  9. matcha.code-workspace