[OpenMap Users] SpacialIndex synchronization problem

From: F.Bayliss <bayliss@alcatel-lucent.com>
Date: Fri Jun 01 2007 - 12:17:08 EDT

FYI...

Okay, I'm no expert on this code but I had to add a synchronized(ssx) {)
block around the code in locateRecords() to protect concurrent access to
'ssx'.

The reason is I had changed locateRecords to public (my copy) so I could
make use of this function in determining when a layer is visible to the
screen. When the function returned an empty array I knew not to display
the layer. The problem I found was ssx was changing in other threads
while I was access this function in my thread.

I just thought I'd let people know.

Thanks
Frank

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Jun 1 12:14:22 2007

This archive was generated by hypermail 2.1.8 : Fri Jun 01 2007 - 12:14:23 EDT