Closed ksugar closed 3 years ago
This PR is for avoiding deadlock in trackscheme.
Opening the TrackScheme window while programmatically generating spots or links can cause a deadlock.
graphRebuiilt()
JScrollBar.setValues()
How to reproduce the problem this PR fixes:
See below for an example of the problem. https://files.gitter.im/60095ae2d73408ce4ff95c1a/Ehsi/TrackSchemeDeadLock.gif
This PR is for avoiding deadlock in trackscheme.
Issue
Opening the TrackScheme window while programmatically generating spots or links can cause a deadlock.
Possible causes
graphRebuiilt()
might require writeLock because it affects Vertex and Edge modelsJScrollBar.setValues()
inside readLock can cause a deadlock