--- a/src/JavaMonitor.st Wed Nov 30 23:02:02 2011 +0000
+++ b/src/JavaMonitor.st Thu Dec 01 10:12:02 2011 +0000
@@ -257,10 +257,12 @@
thisProcess := Processor activeProcess.
self assert: (self isOwnedBy: thisProcess).
Logger
- log: ('%1: notifying %2 processes' bindWith: thisProcess printString with:processesWaiting size)
+ log: ('%1: notifying %2 processes' bindWith: thisProcess printString
+ with: processesWaiting size)
severity: #debug
facility: #JVM.
waitingSema signal.
+ Processor yield.
"Created: / 22-11-2011 / 12:14:23 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
!
@@ -327,7 +329,8 @@
Logger
log: ('%1 is going to wait on %3 for timeout: %2'
bindWith: thisProcess printString
- with: timeOut with: owner printString)
+ with: timeOut
+ with: owner printString)
severity: #debug
facility: #JVM.
self processesWaitingAdd: thisProcess.
@@ -337,8 +340,8 @@
waitingSema waitWithTimeoutMs: timeOut
].
Logger
- log: ('%1 has been notified and continues'
- bindWith: thisProcess printString)
+ log: ('%1 has been notified and is trying to acquire monitor for %2 which is owned by %3'
+ bindWith: thisProcess printString with: owner printString with: owningProcess printString)
severity: #debug
facility: #JVM.
self acquire.
@@ -346,7 +349,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: / 30-11-2011 / 21:31:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
+ "Modified: / 01-12-2011 / 10:57:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
! !
!JavaMonitor methodsFor:'queries'!