Skip to main content

Module protected

Module protected 

Source
Expand description

Where a Sync channel is received. Its send is a protected-procedure call, which the kernel answers by invoking the receiver’s protected and waits on until it returns, so:

  • Receive-headed: every edge at the head of the protected graph is an unguarded receive on a Sync channel, one per channel.
  • Run to completion: no other edge of it receives or awaits an IRQ, since the caller waits while it runs.
  • Only there: init and notified never receive a Sync channel, since its call does not notify.
  • Not from init: init never sends on one, as Lean’s Boot (syncFree): the model runs init committed, so a call from it would block the callee.

Errors, unlike super::wellformed’s: the C backend has no lowering for any of them.

Functions§

check_protected
Every PD’s Sync receives are its protected head, and its protected graph runs to completion.