make SigarProxyCached.invoke synchronized

This commit is contained in:
Doug MacEachern 2009-04-29 13:09:15 -07:00
parent 1c87169bdb
commit bf361a1732
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.
* 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;