reindent in containers.thread

This commit is contained in:
Simon Cruanes 2017-01-25 00:24:14 +01:00
parent 59208fd9c6
commit 9a46b4527c
5 changed files with 228 additions and 228 deletions

View file

@ -91,7 +91,7 @@ let update l f =
(*$T
let l = create 5 in update l (fun x->x+1); get l = 6
*)
*)
let update_map l f =
with_lock l
@ -102,7 +102,7 @@ let update_map l f =
(*$T
let l = create 5 in update_map l (fun x->x+1, string_of_int x) = "5" && get l = 6
*)
*)
let get l =
Mutex.lock l.mutex;
@ -135,7 +135,7 @@ let decr l = update l Pervasives.pred
(*$T
let l = create 0 in incr l ; get l = 1
let l = create 0 in decr l ; get l = ~-1
*)
*)
let incr_then_get l =
Mutex.lock l.mutex;

View file

@ -9,7 +9,7 @@ type job =
module TaskHeap = CCHeap.Make(struct
type t = job
let leq (Job(f1,_)) (Job (f2,_)) = f1 <= f2
end)
end)
exception Stopped