summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/application
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-07 14:57:53 +0300
committerLeif Åstrand <leif@vaadin.com>2012-09-07 14:59:13 +0300
commit9f6bceab2861e4d5a8bccca6c2283804def6477c (patch)
treec5857443996b2211f11d95eb1ae3f98bd70f30f4 /uitest/src/com/vaadin/tests/application
parente954dec24903ec259aa4ef1d1d88555dfb8d3ac4 (diff)
downloadvaadin-framework-9f6bceab2861e4d5a8bccca6c2283804def6477c.tar.gz
vaadin-framework-9f6bceab2861e4d5a8bccca6c2283804def6477c.zip
Use dedicated Lock for session synchronization (#9156)
Diffstat (limited to 'uitest/src/com/vaadin/tests/application')
-rw-r--r--uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java b/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java
index 3adb284f1b..688b2ea4f5 100644
--- a/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java
+++ b/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java
@@ -34,8 +34,11 @@ public class ThreadLocalInstances extends AbstractTestCase {
Thread thread = new Thread() {
@Override
public void run() {
- synchronized (ThreadLocalInstances.this) {
+ getSession().getLock().lock();
+ try {
reportCurrentStatus("background thread");
+ } finally {
+ getSession().getLock().unlock();
}
}
};