[geos-commits] r3644 - trunk/src/noding

svn_geos at osgeo.org svn_geos at osgeo.org
Fri May 25 08:15:13 EDT 2012


Author: strk
Date: 2012-05-25 05:15:12 -0700 (Fri, 25 May 2012)
New Revision: 3644

Modified:
   trunk/src/noding/MCIndexNoder.cpp
Log:
Add strategic check for interrupt in MCIndexNoder loop

Greatly increases interruptability of buffer operations in
presence of many polygons.

Modified: trunk/src/noding/MCIndexNoder.cpp
===================================================================
--- trunk/src/noding/MCIndexNoder.cpp	2012-05-25 10:54:49 UTC (rev 3643)
+++ trunk/src/noding/MCIndexNoder.cpp	2012-05-25 12:15:12 UTC (rev 3644)
@@ -21,6 +21,7 @@
 #include <geos/noding/NodedSegmentString.h>
 #include <geos/index/chain/MonotoneChain.h> 
 #include <geos/index/chain/MonotoneChainBuilder.h> 
+#include <geos/util/Interrupt.h> 
 
 #include <cassert>
 #include <functional>
@@ -68,6 +69,8 @@
 			++i)
 	{
 
+		GEOS_CHECK_FOR_INTERRUPTS();
+
 		MonotoneChain* queryChain = *i;
 		assert(queryChain);
 		vector<void*> overlapChains;



More information about the geos-commits mailing list