diff framework/Document.h @ 697:a27a6113fdd7

Restore/reimplement cancelAsyncLayerCreation - I had forgotten Tony uses it
author Chris Cannam
date Thu, 18 Jul 2019 14:12:00 +0100
parents 3c5dc95bea91
children 6429a164b7e1
line wrap: on
line diff
--- a/framework/Document.h	Wed Jul 17 14:25:41 2019 +0100
+++ b/framework/Document.h	Thu Jul 18 14:12:00 2019 +0100
@@ -165,6 +165,14 @@
                                                       LayerCreationHandler *handler);
 
     /**
+     * Indicate that the async layer creation task associated with the
+     * given handle should be cancelled. There is no guarantee about
+     * what this will mean, and the handler callback may still be
+     * called.
+     */
+    void cancelAsyncLayerCreation(LayerCreationAsyncHandle handle);
+
+    /**
      * Delete the given layer, and also its associated model if no
      * longer used by any other layer.  In general, this should be the
      * only method used to delete layers -- doing so directly is a bit