synchronize sigar invoker

This commit is contained in:
Doug MacEachern 2004-08-30 21:06:55 +00:00
parent 6008f8bb79
commit e575176056
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ public class SigarProcess implements SigarProcessMBean {
public void close() { public void close() {
} }
private Long getLongValue(SigarInvokerJMX invoker, String attr) { private synchronized Long getLongValue(SigarInvokerJMX invoker, String attr) {
try { try {
return (Long)invoker.invoke(attr); return (Long)invoker.invoke(attr);
} catch (SigarException e) { } catch (SigarException e) {