World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 01-15-2008, 02:51 PM   #1
zerobarrier
Developer
 
Join Date: Dec 2007
Posts: 55
zerobarrier is on a distinguished road
Default Refactor RenderableLayer?

Not to sound harsh, but RenderableLayer is extremely not thread safe. Furthermore, the private Collection renderables is exposed via getRenderables(). Does anyone plan on refactoring RenderableLayer to use a concurrent collection class (much like IconLayer) or another acceptable method of thread safety? IMO, a CopyOnWriteArrayList would be the best implementation to use.

Last edited by zerobarrier; 01-15-2008 at 05:51 PM.
zerobarrier is offline   Reply With Quote
Old 01-15-2008, 05:48 PM   #2
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

From tag:
Quote:
We'll be cleaning up these kinds of thread-safety issue sometime soon, in conjunction with a major API and implementation review. This one's a pretty easy fix, and he's right that a copy-on-write collection is probably the best choice.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 01-15-2008, 05:52 PM   #3
zerobarrier
Developer
 
Join Date: Dec 2007
Posts: 55
zerobarrier is on a distinguished road
Default

Excellent, thanks Pat.
zerobarrier is offline   Reply With Quote
Old 01-16-2008, 07:09 AM   #4
asantiago
WWJ aficionado
 
Join Date: Aug 2007
Posts: 136
asantiago is on a distinguished road
Default

I put an entry in JIRA some day ago about this issue
__________________
|---------------------------------------
| http://www.acuriousanimal.com/
|---------------------------------------
| http://theballoonproject.blogspot.com
|---------------------------------------
| _ __
| /_| ( _ _/'_ _
|( |. __)(//)//(/(/()
| _/
|---------------------------------------
asantiago is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:17 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.