Skip to content

Conversation

@ericspod
Copy link
Member

@ericspod ericspod commented Apr 8, 2025

Fixes #8056.

Description

This fixes a race condition where the tracing member may be toggled in multiple threads. This is turned into a thread-local value that removes this issue.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

ericspod added 4 commits April 5, 2025 23:46
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
I, Eric Kerfoot <eric.kerfoot@kcl.ac.uk>, hereby add my Signed-off-by to this commit: 11be4cb
I, Eric Kerfoot <eric.kerfoot@kcl.ac.uk>, hereby add my Signed-off-by to this commit: 6b9e4d6

Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
@ericspod ericspod requested review from KumoLiu and Nic-Ma April 8, 2025 17:45
@ericspod ericspod requested a review from yiheng-wang-nv April 8, 2025 17:46
ericspod and others added 10 commits April 9, 2025 19:25
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
@ericspod
Copy link
Member Author

Hi @KumoLiu this is ready now to put through blossom, thanks.

@KumoLiu
Copy link
Contributor

KumoLiu commented Apr 10, 2025

/build

Copy link
Contributor

@KumoLiu KumoLiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me, thanks for the fix.

@KumoLiu KumoLiu merged commit f27517b into Project-MONAI:dev Apr 11, 2025
26 checks passed
@ericspod ericspod deleted the inverse_threading_fix branch May 23, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

racing condition when InvertD is used along with ThreadDataLoader

2 participants