HISE Logo Forum
    • Categories
    • Register
    • Login

    Execution timeout value

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 413 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ustkU
      ustk
      last edited by

      Is it possible to change the limit of the execution timeout? (not the compile timeout)

      Can't help pressing F5 in the forum...

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @ustk
        last edited by

        @ustk Why? If you've got a big task that hits that limit, you should defer it to a background thread.

        ustkU 2 Replies Last reply Reply Quote 1
        • ustkU
          ustk @Christoph Hart
          last edited by ustk

          @Christoph-Hart And I'm the guy who asked for a background thread... Say bravo 👏

          Can't help pressing F5 in the forum...

          1 Reply Last reply Reply Quote 1
          • ustkU
            ustk @Christoph Hart
            last edited by ustk

            @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

            Can't help pressing F5 in the forum...

            Christoph HartC 1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart @ustk
              last edited by

              @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).

              Link Preview Image
              HISE | Docs

              favicon

              (docs.hise.audio)

              ustkU 1 Reply Last reply Reply Quote 1
              • ustkU
                ustk @Christoph Hart
                last edited by

                @Christoph-Hart Oh, I forgot this one acted as timeout security...

                Can't help pressing F5 in the forum...

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                32

                Online

                1.7k

                Users

                11.7k

                Topics

                102.0k

                Posts