repositories
/
TD_SR.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code cleanups.
[TD_SR.git]
/
TD1
/
exo3
/
BufferCirc.java
diff --git
a/TD1/exo3/BufferCirc.java
b/TD1/exo3/BufferCirc.java
index 91c458bc18894aced8aff2ecfd23af8e53847a69..e03e8ea950e2cdd3ab244bde76454722f2abbd90 100644
(file)
--- a/
TD1/exo3/BufferCirc.java
+++ b/
TD1/exo3/BufferCirc.java
@@
-33,7
+33,7
@@
public class BufferCirc {
while(isFull()) {
try {
System.out.println("Buffer is full: " + Thread.currentThread().getName()
while(isFull()) {
try {
System.out.println("Buffer is full: " + Thread.currentThread().getName()
- + " is waiting, size: " + nbObj);
+
+ " is waiting, size: " + nbObj);
wait();
}
catch (InterruptedException e) {}
wait();
}
catch (InterruptedException e) {}
@@
-50,7
+50,7
@@
public class BufferCirc {
while(isEmpty()) {
try {
System.out.println("Buffer is empty: " + Thread.currentThread().getName()
while(isEmpty()) {
try {
System.out.println("Buffer is empty: " + Thread.currentThread().getName()
- + " is waiting, size: " + nbObj);
+
+ " is waiting, size: " + nbObj);
wait();
}
catch (InterruptedException e) {}
wait();
}
catch (InterruptedException e) {}