make SigarProxyCached.invoke synchronized

This commit is contained in:
Doug MacEachern 2009-04-29 13:09:15 -07:00
parent f1e3a4c37c
commit 5ac96fb803
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class SigarProxyCache
* The java.lang.reflect.InvocationHandler used by the Proxy. * The java.lang.reflect.InvocationHandler used by the Proxy.
* This method handles caching of all Sigar type objects. * 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 { throws SigarException, SigarNotImplementedException {
SigarCacheObject cacheVal = null; SigarCacheObject cacheVal = null;