Skip to content
Snippets Groups Projects
Commit f2f98080 authored by Ralf Jung's avatar Ralf Jung
Browse files

refine comments even more

parent 1b16dbbe
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -189,7 +189,7 @@ Section rwlock. ...@@ -189,7 +189,7 @@ Section rwlock.
eqtype E L ty1 ty2 eqtype E L (rwlock ty1) (rwlock ty2). eqtype E L ty1 ty2 eqtype E L (rwlock ty1) (rwlock ty2).
Proof. eapply rwlock_proper. Qed. Proof. eapply rwlock_proper. Qed.
(* TODO : apparently, we don't need to require ty to be sync, (* Apparently, we don't need to require ty to be sync,
contrarily to Rust's implementation. *) contrarily to Rust's implementation. *)
Global Instance rwlock_send : Global Instance rwlock_send :
Send ty Send (rwlock ty). Send ty Send (rwlock ty).
......
...@@ -113,6 +113,7 @@ Section rwlockreadguard. ...@@ -113,6 +113,7 @@ Section rwlockreadguard.
eqtype E L (rwlockreadguard α1 ty1) (rwlockreadguard α2 ty2). eqtype E L (rwlockreadguard α1 ty1) (rwlockreadguard α2 ty2).
Proof. intros. by eapply rwlockreadguard_proper. Qed. Proof. intros. by eapply rwlockreadguard_proper. Qed.
(* Rust requires the type to also be Send. Not sure why. *)
Global Instance rwlockreadguard_sync α ty : Global Instance rwlockreadguard_sync α ty :
Sync ty Sync (rwlockreadguard α ty). Sync ty Sync (rwlockreadguard α ty).
Proof. Proof.
......
...@@ -116,6 +116,7 @@ Section rwlockwriteguard. ...@@ -116,6 +116,7 @@ Section rwlockwriteguard.
eqtype E L (rwlockwriteguard α1 ty1) (rwlockwriteguard α2 ty2). eqtype E L (rwlockwriteguard α1 ty1) (rwlockwriteguard α2 ty2).
Proof. intros. by eapply rwlockwriteguard_proper. Qed. Proof. intros. by eapply rwlockwriteguard_proper. Qed.
(* Rust requires the type to also be Send. Not sure why. *)
Global Instance rwlockwriteguard_sync α ty : Global Instance rwlockwriteguard_sync α ty :
Sync ty Sync (rwlockwriteguard α ty). Sync ty Sync (rwlockwriteguard α ty).
Proof. Proof.
......
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