Author: jm
Date: 2012-11-26 13:14:17 -0800 (Mon, 26 Nov 2012)
New Revision: 30840
Modified:
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
Log:
Fixes #1601: Fixed threading issue where multiple threads check/modify
non-volatile boolean variable
Modified:
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
===================================================================
---
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
2012-11-26 20:35:24 UTC (rev 30839)
+++
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DGraphView.java
2012-11-26 21:14:17 UTC (rev 30840)
@@ -290,12 +290,12 @@
/**
* State variable for when nodes have moved.
*/
- boolean m_contentChanged = false;
+ volatile boolean m_contentChanged = false;
/**
* State variable for when zooming/panning have changed.
*/
- boolean m_viewportChanged = false;
+ volatile boolean m_viewportChanged = false;
/**
* List of listeners.
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.