projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2074476
)
Fix the thread safe problem
author
jzhou
<jzhou>
Thu, 3 May 2012 17:18:22 +0000
(17:18 +0000)
committer
jzhou
<jzhou>
Thu, 3 May 2012 17:18:22 +0000
(17:18 +0000)
Robust/src/ClassLibrary/MGC/gnu/ReentrantLock.java
patch
|
blob
|
history
diff --git
a/Robust/src/ClassLibrary/MGC/gnu/ReentrantLock.java
b/Robust/src/ClassLibrary/MGC/gnu/ReentrantLock.java
index a6abc7b46d83f1eedcc6e514c38940d941bd5775..6415fc9145a39c150723dc7939be3ad842cf4fec 100644
(file)
--- a/
Robust/src/ClassLibrary/MGC/gnu/ReentrantLock.java
+++ b/
Robust/src/ClassLibrary/MGC/gnu/ReentrantLock.java
@@
-319,7
+319,7
@@
public class ReentrantLock implements /*Lock, java.io.*/Serializable {
*
* @throws InterruptedException if the current thread is interrupted
*/
- public void lockInterruptibly() throws InterruptedException {
+ public
synchronized
void lockInterruptibly() throws InterruptedException {
Thread callingThread = Thread.currentThread();
while(isLocked && lockedBy != callingThread){
wait();