make SigarProxyCached.invoke synchronized
This commit is contained in:
parent
f1e3a4c37c
commit
5ac96fb803
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue