On Wed, Jan 23, 2013 at 10:32 AM, Michael Bedward <[email protected]
> wrote:

>
> Would it be possible to use CountDownLatch.await( timeout ) in the
> test case and kill the rendering thread if that returns false ?  (I
> haven't looked at this issue so that may be off track)
>

The thing is, you cannot kill a thread in java, it has to die on its own
(the method that supposedly does it is deprecated and afaik does nothing).

Normally this is done by either raising a flag that will make the
code just stop, or by poisoning its environment so that the code stumbles
into an exception and is forced to give up

Cheers
Andrea

-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to