Modify

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#11631 closed enhancement (fixed)

[Patch] Synchronized access to MapView#layers

Reported by: michael2402 Owned by: team
Priority: normal Milestone: 15.08
Component: Core Version:
Keywords: gsoc Cc:

Description

The OpenGL plugin should support asynchronous layer drawing (not in sync with the AWT threads). Currently, the layers are not synchronized anywhere, but this is required for the plugin.

Attachments (1)

0005-Synchronized-access-to-MapView-layers.patch (29.2 KB ) - added by michael2402 9 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by Don-vip, 9 years ago

Keywords: gsoc added
Milestone: 15.07

comment:2 by bastiK, 9 years ago

Resolution: fixed
Status: newclosed

In 8551/josm:

applied #11631 new enhancement - Synchronized access to MapView#layers (patch by michael2402)

comment:3 by bastiK, 9 years ago

Great work!

  • in moveLayer, there was an unused variable (oldEditLayer)
  • I've not applied the changes to getVisibleLayersInZOrder: The idea is to move the active data layer on top of any number of (inactive) data layers that come directly above. (Not sure if the current code does that, but anyway...)

comment:4 by Don-vip, 9 years ago

Milestone: 15.0715.08

Milestone renamed

comment:5 by wiktorn, 9 years ago

Resolution: fixed
Status: closedreopened

@michael2402

You need to verify changes in [8646], if they provide needed level of synchronization.

comment:6 by michael2402, 9 years ago

For me, they provide enough synchronisation. This should at least solve the issues I got (ConcurrentModificationException, ...).

I am not sure about plugins. Especially calling layer.destroy(); before fireLayerRemoved(layer); seems to be unsafe.

I think we could move this whole block out of the synchronized statement:

layer.removePropertyChangeListener(this);
layer.destroy();
AudioPlayer.reset();

comment:7 by Don-vip, 9 years ago

Resolution: fixed
Status: reopenedclosed

comment:8 by Don-vip, 8 years ago

In 8925/josm:

see #11631 - see #11689 - remove commented code causing javadoc warnings

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.