Expand description
Process policy implementations for the Tock kernel.
This file contains implementations of policies the Tock kernel can use when managing processes. For example, these policies control decisions such as whether a specific process should be restarted.
Structs§
- Panic
Fault Policy - Simply panic the entire board if a process faults.
- Restart
Fault Policy - Always restart the process if it faults.
- Restart
With Debug Fault Policy - Always restart the process if it faults, but print a debug message:
- Stop
Fault Policy - Simply stop the process and no longer schedule it if a process faults.
- Stop
With Debug Fault Policy - Stop the process and no longer schedule it if a process faults, but also print a debug message notifying the user that the process faulted and stopped.
- Threshold
Restart Fault Policy - Implementation of
ProcessFaultPolicy
that uses a threshold to decide whether to restart a process when it faults. - Threshold
Restart Then Panic Fault Policy - Implementation of
ProcessFaultPolicy
that uses a threshold to decide whether to restart a process when it faults.