Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
lambda-rust
Commits
fb244ed3
There was a problem fetching the pipeline summary.
Commit
fb244ed3
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
MutexGuard Sync bound
parent
fcde5d93
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/typing/lib/mutex/mutexguard.v
+11
-2
11 additions, 2 deletions
theories/typing/lib/mutex/mutexguard.v
with
11 additions
and
2 deletions
theories/typing/lib/mutex/mutexguard.v
+
11
−
2
View file @
fb244ed3
...
@@ -88,9 +88,18 @@ Section mguard.
...
@@ -88,9 +88,18 @@ Section mguard.
Global
Instance
mutexguard_ne
α
:
NonExpansive
(
mutexguard
α
)
.
Global
Instance
mutexguard_ne
α
:
NonExpansive
(
mutexguard
α
)
.
Proof
.
apply
type_contractive_ne
,
_
.
Qed
.
Proof
.
apply
type_contractive_ne
,
_
.
Qed
.
(* TODO: compat with lft_incl and eqtype.
(* TODO: compat with lft_incl and eqtype. *)
MutexGuard is Sync if T is Send. *)
Global
Instance
mutexguard_sync
α
ty
:
Sync
ty
→
Sync
(
mutexguard
α
ty
)
.
Proof
.
move
=>?????
/=.
apply
uPred
.
exist_mono
=>?
.
do
6
f_equiv
.
by
rewrite
sync_change_tid
.
Qed
.
(* POSIX requires the unlock to occur from the thread that acquired
the lock, so Rust does not implement Send for RwLockWriteGuard. We could
prove this. *)
End
mguard
.
End
mguard
.
Section
code
.
Section
code
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment