- Use read mutex when checking SceneExplorerProperty value, not just write mutex when writing

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10115 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2013-01-20 14:45:02 +00:00
parent 03f1060500
commit 8fef000fe9

View File

@ -121,6 +121,8 @@ public class SceneExplorerProperty<T> extends PropertySupport.Reflection<T> {
return; return;
} }
final T realValue = getSuperValue(); final T realValue = getSuperValue();
mutex.readAccess(new Runnable() {
public void run() {
if ((objectLocal == null) && !inited) { if ((objectLocal == null) && !inited) {
mutex.postWriteRequest(new Runnable() { mutex.postWriteRequest(new Runnable() {
public void run() { public void run() {
@ -150,6 +152,8 @@ public class SceneExplorerProperty<T> extends PropertySupport.Reflection<T> {
}); });
} }
} }
});
}
@Override @Override
public T getValue() throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { public T getValue() throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {