equal
deleted
inserted
replaced
323 // try wait with timeout to avoid possible hanging if something will go wrong |
323 // try wait with timeout to avoid possible hanging if something will go wrong |
324 if ((System.currentTimeMillis() - startTime) > 60000) { |
324 if ((System.currentTimeMillis() - startTime) > 60000) { |
325 throw new TestBug("Locking thread can't reach required state (state: " + requiredState + " wasn't reached) in 1 minute"); |
325 throw new TestBug("Locking thread can't reach required state (state: " + requiredState + " wasn't reached) in 1 minute"); |
326 } |
326 } |
327 |
327 |
328 yield(); |
328 Thread.yield(); |
329 } |
329 } |
330 |
330 |
331 requiredState = null; |
331 requiredState = null; |
332 |
332 |
333 Object relinquishedMonitor = getRelinquishedMonitor(); |
333 Object relinquishedMonitor = getRelinquishedMonitor(); |