Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASYNC: Improved error status transfer from workers to main thread #2256

Merged
merged 1 commit into from
Sep 9, 2024

Commits on Sep 9, 2024

  1. ASYNC: Improved error status transfer from workers to main thread

    If a thread was aborted through a regular AbortOnValue this was caught
    but only a possible RTE was evaluated. Thus, the readout function
    could not determine if the thread was aborted or not.
    
    Changes:
    - The readout function now uses ASYNC_ReadOutStruct as single argument.
      This allows extensions without changing all function APIs.
      The structure includes the former values for dfr, RTE code, RTE message
      and now additionally the V_abortCode.
      The RTE message must be included here as it has to be retrieved as soon as
      it happened (in the thread) and needs to be trnasported then to
      the main thread as well.
    - The user readout function can evaluate then both error conditions and react
      accordingly.
    - Tests
    MichaelHuth committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    9a0fbf4 View commit details
    Browse the repository at this point in the history