Skip to content

[tmva] Retire TH1::AddDirectory use in TMVA.#21646

Open
hageboeck wants to merge 1 commit intoroot-project:masterfrom
hageboeck:root7-ownership-19
Open

[tmva] Retire TH1::AddDirectory use in TMVA.#21646
hageboeck wants to merge 1 commit intoroot-project:masterfrom
hageboeck:root7-ownership-19

Conversation

@hageboeck
Copy link
Member

Replace uses of TH1::AddDirectory() by TDirectory::TContext. It is thread-local and uses the RAII idiom, so state changes cannot inadvertently leak out of TMVA functions.

Replace uses of TH1::AddDirectory by TDirectory::TContext. It is
thread-local and uses the RAII idiom, so state changes cannot
inadvertently leak out of TMVA functions.
Copy link
Member

@vepadulano vepadulano left a comment

Choose a reason for hiding this comment

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

Always a good thing to do

@github-actions
Copy link

Test Results

    22 files      22 suites   3d 6h 14m 25s ⏱️
 3 832 tests  3 830 ✅ 1 💤 1 ❌
75 650 runs  75 640 ✅ 9 💤 1 ❌

For more details on these failures, see this check.

Results for commit 3a29d35.

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.

2 participants