aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/BranchManager.mli
diff options
context:
space:
mode:
authorEstevan Castilho <tevo@riajuu.net>2026-08-20 00:18:32 +0000
committerEstevan Castilho <tevo@riajuu.net>2026-08-23 03:06:57 +0000
commitebea139a01d1ca3f53df9671ff4ebf7990ac26d4 (patch)
treea897b2bacad96ce763ec9b22cd0f68fd5710a5a7 /lib/kernel/BranchManager.mli
parent465f3378daea5a6f0d44f3729c3551a9cda78ed9 (diff)
downloadRNT-ebea139a01d1ca3f53df9671ff4ebf7990ac26d4.tar.gz
RNT-ebea139a01d1ca3f53df9671ff4ebf7990ac26d4.zip
Make `update` a bit more like compare-and-swap
Diffstat (limited to 'lib/kernel/BranchManager.mli')
-rw-r--r--lib/kernel/BranchManager.mli6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/kernel/BranchManager.mli b/lib/kernel/BranchManager.mli
index 063f8a7..052f9a1 100644
--- a/lib/kernel/BranchManager.mli
+++ b/lib/kernel/BranchManager.mli
@@ -1,11 +1,9 @@
-type branch = string (* FIXME *)
-
module Make (S : Abstract.Storage.STORAGE) : sig
type manager
val initialize : S.connection -> string -> (manager, Concepts.Condition.condition) result
- val fetch : manager -> string -> (branch option, Concepts.Condition.condition) result
- val update : manager -> string -> (branch -> branch) -> (manager, Concepts.Condition.condition) result
+ val fetch : manager -> string -> (Concepts.Hash.hash option, Concepts.Condition.condition) result
+ val update : manager -> string -> Concepts.Hash.hash -> Concepts.Hash.hash -> (unit, Concepts.Condition.condition) result
(* TODO: fork, join *)
end