Debian Codegraph @

lib/mlrisc-lib/MLRISC/library/transaction-log.sig

raw
1 (*
2 * This implements a transaction log.
3 *
4 * -- Allen
5 *)
6
7 signature TRANSACTION_LOG =
8 sig
9
10 exception TransactionLog
11
12 type version = int
13 val version : version ref
14 val add_object : { rollback : version -> unit,
15 commit : version -> unit } -> unit
16 val begin : unit -> unit
17 val commit : unit -> unit
18 val abort : unit -> unit
19 val init : unit -> unit
20 end
21