-
Hello! Just a quick question. Why do functions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think the bool was intended to represent success/failure of an exclusive or CAS operation, but in practice we haven't ended up using it. The current sail memory write interface uses the type
You timed this question quite nicely though, as we actually had a meeting just yesterday where we talked about simplifying to |
Beta Was this translation helpful? Give feedback.
I think the bool was intended to represent success/failure of an exclusive or CAS operation, but in practice we haven't ended up using it.
The current sail memory write interface uses the type
result(option(bool), 'abort)
so:Ok(None())
= successful regular memory accessOk(Some(true))
= write exclusive success (in theory)Err(<some external abort>)
= external memory abort (with architecture specific type)You timed this question quite nicely though, as we actually had a meeting just yesterday where we talked about simplifying to
result(unit, 'abort)
/option('abort)
in the future.