[OpenMap Users] Thread questions

From: Donohue Sean <SGDONOHUE_at_qinetiq.com>
Date: Thu, 4 May 2006 11:05:30 +0100



I need to receive position data from a server written in C++, which means I
need to learn about threading in Java:-(. I've created a layer derived from
OMGraphicHandlerLayer. All layers are Swing components, right?


Does that mean that if I create a thread to handle the socket I/O then I can
use SwingWorker.invokeLater to call some public method on my layer class and
pass in the new positions to be added to the layer? No locks needed, all
the thread safety is handled for me?


What about the GUI shown by the getGUI method? If I use that to filter some
of the points in the layer, that happens in the event dispatching thread,
yes? Is that the same as the layer thread or do I need to use the same
technique here too?





The information contained in this E-Mail and any subsequent
correspondence is private and is intended solely for the intended
recipient(s). The information in this communication may be confidential
and/or legally privileged. Nothing in this e-mail is intended to
conclude a contract on behalf of QinetiQ or make QinetiQ subject to any
other legally binding commitments, unless the e-mail contains an express
statement to the contrary or incorporates a formal Purchase Order.

For those other than the recipient any disclosure, copying,
distribution, or any action taken or omitted to be taken in reliance on
such information is prohibited and may be unlawful.

Emails and other electronic communication with QinetiQ may be monitored
and recorded for business purposes including security, audit and
archival purposes. Any response to this email indicates consent to

Telephone calls to QinetiQ may be monitored or recorded for quality
control, security and other business purposes.

[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu May 04 2006 - 06:08:02 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT