From e5751760562b90e03d3895574821b95780f90da4 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 30 Aug 2004 21:06:55 +0000 Subject: [PATCH] synchronize sigar invoker --- bindings/java/src/net/hyperic/sigar/jmx/SigarProcess.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/java/src/net/hyperic/sigar/jmx/SigarProcess.java b/bindings/java/src/net/hyperic/sigar/jmx/SigarProcess.java index 174ca364..82e3315e 100644 --- a/bindings/java/src/net/hyperic/sigar/jmx/SigarProcess.java +++ b/bindings/java/src/net/hyperic/sigar/jmx/SigarProcess.java @@ -41,7 +41,7 @@ public class SigarProcess implements SigarProcessMBean { public void close() { } - private Long getLongValue(SigarInvokerJMX invoker, String attr) { + private synchronized Long getLongValue(SigarInvokerJMX invoker, String attr) { try { return (Long)invoker.invoke(attr); } catch (SigarException e) {