Skip to content
Snippets Groups Projects
Commit 0fccdf33 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Fix wrong name in lock.

parent e5973e6f
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,8 @@ Import uPred. ...@@ -5,7 +5,8 @@ Import uPred.
Definition newlock : val := λ: <>, ref #false. Definition newlock : val := λ: <>, ref #false.
Definition acquire : val := Definition acquire : val :=
rec: "lock" "l" := if: CAS '"l" #false #true then #() else '"lock" '"l". rec: "acquire" "l" :=
if: CAS '"l" #false #true then #() else '"acquire" '"l".
Definition release : val := λ: "l", '"l" <- #false. Definition release : val := λ: "l", '"l" <- #false.
(** The CMRA we need. *) (** The CMRA we need. *)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment