From 024578be8f841909a0ec507d246025696de30992 Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 6 Mar 2007 12:55:46 +0000 Subject: [PATCH] synchronized methods to ensure thread safety for underlying SimplePickManager code. (not successful yet!) git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@347 be28352e-c001-0410-b1a7-c7978e42abec --- src/uk/ac/vamsas/client/simpleclient/SimplePickManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uk/ac/vamsas/client/simpleclient/SimplePickManager.java b/src/uk/ac/vamsas/client/simpleclient/SimplePickManager.java index 7b33f48..8ac5516 100644 --- a/src/uk/ac/vamsas/client/simpleclient/SimplePickManager.java +++ b/src/uk/ac/vamsas/client/simpleclient/SimplePickManager.java @@ -41,7 +41,7 @@ public class SimplePickManager implements IPickManager { } - public void sendMessage(Message message) { + public synchronized void sendMessage(Message message) { manager.sendMessage(message); } /** @@ -49,7 +49,7 @@ public class SimplePickManager implements IPickManager { * passThru is true before passing message on. * @param message */ - protected void handleMessage(Message message) { + protected synchronized void handleMessage(Message message) { while (!passThru) { try { Thread.sleep(5); -- 1.7.10.2