[geos-commits] r3646 - trunk/capi

svn_geos at osgeo.org svn_geos at osgeo.org
Fri May 25 11:26:58 EDT 2012


Author: strk
Date: 2012-05-25 08:26:58 -0700 (Fri, 25 May 2012)
New Revision: 3646

Modified:
   trunk/capi/geos_c.cpp
   trunk/capi/geos_c.h.in
Log:
Expose interrupt request cancel to the C-API

Modified: trunk/capi/geos_c.cpp
===================================================================
--- trunk/capi/geos_c.cpp	2012-05-25 12:26:55 UTC (rev 3645)
+++ trunk/capi/geos_c.cpp	2012-05-25 15:26:58 UTC (rev 3646)
@@ -119,6 +119,12 @@
   geos::util::Interrupt::request();
 }
 
+void
+GEOS_cancelInterruption()
+{
+  geos::util::Interrupt::cancel();
+}
+
 void 
 GEOSFree (void* buffer) 
 { 

Modified: trunk/capi/geos_c.h.in
===================================================================
--- trunk/capi/geos_c.h.in	2012-05-25 12:26:55 UTC (rev 3645)
+++ trunk/capi/geos_c.h.in	2012-05-25 15:26:58 UTC (rev 3646)
@@ -156,6 +156,8 @@
 
 /* Request safe interruption of operations */
 extern void GEOS_DLL GEOS_requestInterruption();
+/* Cancel a pending interruption */
+extern void GEOS_DLL GEOS_cancelInterruption();
 
 
 extern GEOSContextHandle_t GEOS_DLL initGEOS_r(



More information about the geos-commits mailing list