Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/thread/inc/ROOT/TThreadedObject.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "TList.h"
#include "TError.h"

#include <algorithm>
#include <functional>
#include <map>
#include <memory>
Expand Down Expand Up @@ -286,7 +287,7 @@ namespace ROOT {

};

template<class T> unsigned TThreadedObject<T>::fgMaxSlots = 64;
template<class T> unsigned TThreadedObject<T>::fgMaxSlots = std::max(std::thread::hardware_concurrency(), 64u);
Copy link
Member

Choose a reason for hiding this comment

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

Why not simply use std::thread::hardware_concurrency()?

Copy link
Contributor Author

@xvallspl xvallspl Sep 21, 2017

Choose a reason for hiding this comment

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

For not breaking previous behaviour? But yeah, I was told to keep a minimum of 32.

One step at a time #1019


} // End ROOT namespace

Expand Down