OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* config/posix/rwlock.cc (gtm_rwlock::write_lock_generic): Fix
[pf3gnuchains/gcc-fork.git]
/
libitm
/
config
/
posix
/
rwlock.cc
diff --git
a/libitm/config/posix/rwlock.cc
b/libitm/config/posix/rwlock.cc
index
e1e3dcf
..
2464f04
100644
(file)
--- a/
libitm/config/posix/rwlock.cc
+++ b/
libitm/config/posix/rwlock.cc
@@
-193,7
+193,7
@@
gtm_rwlock::write_lock_generic (gtm_thread *tx)
it = it->next_thread)
{
// Don't count ourself if this is an upgrade.
- if (it->shared_state.load(memory_order_relaxed) != -1)
+ if (it->shared_state.load(memory_order_relaxed) !=
(gtm_word)
-1)
readers++;
}