+ /* When running a thread - inform of progress */
+ if ( threaddata ) {
+ dem_count++;
+ /* NB Progress also detects abort request via the returned value */
+ int result = a_background_thread_progress ( threaddata, ((gdouble)dem_count) / dem_total );
+ if ( result != 0 )
+ return -1; /* Abort thread */
+ }