--- a/src/JavaMonitor.st Tue Nov 29 15:00:31 2011 +0000
+++ b/src/JavaMonitor.st Tue Nov 29 15:05:23 2011 +0000
@@ -243,6 +243,11 @@
| thisProcess |
thisProcess := Processor activeProcess.
self assert: (self isOwnedBy: thisProcess).
+ Logger
+ log: ('%1: notifying all %2 processes' bindWith: thisProcess printString
+ with: processesWaiting size)
+ severity: #debug
+ facility: #JVM.
waitingSema signalForAll.
"Created: / 22-11-2011 / 12:14:36 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
@@ -283,10 +288,9 @@
thisProcess := Processor activeProcess.
self assert: (self isOwnedBy: thisProcess).
Logger
- log: ('%1 is going to wait'
- bindWith: thisProcess printString)
- severity: #debug
- facility: #JVM.
+ log: ('%1 is going to wait for timeout: %2' bindWith: thisProcess printString with: timeOut)
+ severity: #debug
+ facility: #JVM.
self processesWaitingAdd: thisProcess.
self releaseAll.
"JV@2011-11-25: zero timeout means wait without timeout!!!!!!"
@@ -303,7 +307,7 @@
"Created: / 22-11-2011 / 12:52:45 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
"Modified (comment): / 25-11-2011 / 18:30:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
- "Modified: / 29-11-2011 / 15:13:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
+ "Modified: / 29-11-2011 / 16:02:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
! !
!JavaMonitor methodsFor:'queries'!