Execution timeout value
-
Is it possible to change the limit of the execution timeout? (not the compile timeout)
-
@ustk Why? If you've got a big task that hits that limit, you should defer it to a background thread.
-
@Christoph-Hart And I'm the guy who asked for a background thread... Say bravo
-
@Christoph-Hart When running a debug in Xcode, a background task throws an Execution timeout.
But it works as it should in a release version of Hise -
@ustk You need to call
shouldAbort()
periodically with a higher frequency than the specified timeout in order to avoid a timeout.If you're doing things in a loop it's highly advised to call it once per loop and the time between two calls to shouldAbort() must never exceed the thread timeout (in fact the execution will time out if you fail to do so which is a safe check that should prevent you from forgetting to call this).
-
@Christoph-Hart Oh, I forgot this one acted as timeout security...