From: jprocter Date: Tue, 6 Mar 2007 12:55:46 +0000 (+0000) Subject: synchronized methods to ensure thread safety for underlying SimplePickManager code... X-Git-Tag: Release_0.2~173 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=024578be8f841909a0ec507d246025696de30992;p=vamsas.git 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 --- 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);