Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
cd8f7a58
Commit
cd8f7a58
authored
Jan 09, 2006
by
simonmar
Browse files
[project @ 2006-01-09 14:37:07 by simonmar]
Put entry_is_read_only and tvar_is_locked
parent
a27ed15f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/STM.c
View file @
cd8f7a58
...
...
@@ -621,6 +621,7 @@ static StgBool entry_is_update(TRecEntry *e) {
return
result
;
}
#if defined(STM_FG_LOCKS)
static
StgBool
entry_is_read_only
(
TRecEntry
*
e
)
{
StgBool
result
;
result
=
(
e
->
expected_value
==
e
->
new_value
);
...
...
@@ -634,6 +635,7 @@ static StgBool tvar_is_locked(StgTVar *s, StgTRecHeader *h) {
result
=
(
c
==
(
StgClosure
*
)
h
);
return
result
;
}
#endif
// revert_ownership : release a lock on a TVar, storing back
// the value that it held when the lock was acquired. "revert_all"
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment