Skip to content
Snippets Groups Projects
Commit c414e49a authored by Enrico Guiraud's avatar Enrico Guiraud
Browse files

[DF] Ensure TTreeProcessorMT's pool is created with expected number of threads

At construction time, RDataFrame sets its number of processing slots
equal to ROOT::GetImplicitMTPoolSize(). We always want to
construct TTreeProcessorMT's thread pool with a size equal to
RDF::GetNSlots().

Besides being more robust (less reliance on shared global state),
this patch guarantees that if the number of threads in the thread pool
is different than what RDF requests, we get a warning from TThreadExecutor.
parent c5162e11
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment