make SigarProxyCached.invoke synchronized

This commit is contained in:
Doug MacEachern committed 2009-05-15 16:58:33 -07:00
1 parent f1e3a4c37c
commit 5ac96fb803
1 file changed
+1 -1
@@ -123,7 +123,7 @@ public class SigarProxyCache
* The java.lang.reflect.InvocationHandler used by the Proxy.
* This method handles caching of all Sigar type objects.
*/
public Object invoke(Object proxy, Method method, Object[] args)
public synchronized Object invoke(Object proxy, Method method, Object[] args)
throws SigarException, SigarNotImplementedException {
SigarCacheObject cacheVal = null;