[OpenMap Users] DTEDLayer doPrepare

From: Alessio Iannone <alessio_iannone_at_yahoo.it>
Date: Thu, 21 Feb 2008 09:26:56 +0000 (GMT)

HI. Studying the openmap api I have seen this code on the doPrepare // If there isn't a worker thread working on this already, // create a thread that will do the real work. If there is // a thread working on this, then set the cancelled flag // in the layer. if (currentWorker == null) { currentWorker = new DTEDWorker(); currentWorker.execute(); } else setCancelled(true); if (currentWorker == null) { fireStatusUpdate(LayerStatusEvent.START_WORKING); currentWorker = new DTEDWorker(); currentWorker.execute(); } else setCancelled(true); I would like to understand why the check on the null state of the currentWorker is done twice and differently. The first time simply allocate and start and second time first call fireStatusUpdate(LayerStatusEvent.START_WORKING); Best Regards. Alessio Iannone Software Engineer Mobile: 39 329 8834960 Email: alessio.iannone_at_nextant.it IM: quonn77_at_hotmail.com (AIM) http://www.linkedin.com/in/alessioiannone Web sites of the Martial Arts I play Nextant - Navcomm Applications Via Alessandro Noale See who we know in common Want a signature like this? ___________________________________ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

--
[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 Feb 21 2008 - 04:30:01 EST

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