[Remoterengine-commits] r176 - pkg/RemoteREngine/inst/java_src/src/server/org/rosuda/REngine/remote/server
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Sep 21 17:17:34 CEST 2009
Author: romain
Date: 2009-09-21 17:17:33 +0200 (Mon, 21 Sep 2009)
New Revision: 176
Modified:
pkg/RemoteREngine/inst/java_src/src/server/org/rosuda/REngine/remote/server/RemoteRMainLoopCallbacks.java
Log:
making rReadconsole synchronized
Modified: pkg/RemoteREngine/inst/java_src/src/server/org/rosuda/REngine/remote/server/RemoteRMainLoopCallbacks.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/server/org/rosuda/REngine/remote/server/RemoteRMainLoopCallbacks.java 2009-09-21 15:08:06 UTC (rev 175)
+++ pkg/RemoteREngine/inst/java_src/src/server/org/rosuda/REngine/remote/server/RemoteRMainLoopCallbacks.java 2009-09-21 15:17:33 UTC (rev 176)
@@ -159,7 +159,7 @@
* @param prompt prompt to be displayed at the console prior to user's input
* @param addToHistory flag telling the handler whether the input should be considered for adding to history (!=0) or not (0)
* @return user's input to be passed to R for evaluation */
- public String rReadConsole(Rengine re, String prompt, int addToHistory) {
+ public synchronized String rReadConsole(Rengine re, String prompt, int addToHistory) {
/* send the callback to clients (they might be interested in the prompt) */
ReadConsoleCallback callback = new ReadConsoleCallback( prompt) ;
server.sendCallbackToListeners( callback ) ;
More information about the Remoterengine-commits
mailing list