view tests/sidecheck.ur @ 2033:ea0ecd5fa9df

Add locking to enforce atomicity of message sends from one transaction
author Adam Chlipala <adam@chlipala.net>
date Fri, 27 Jun 2014 14:39:31 -0400
parents 154cfe2eb366
children
line wrap: on
line source
fun main () : transaction page =
    s <- source 0;
    n <- get s;
    set s (n + 1);
    n' <- get s;
    return <xml>{[n']}</xml>