32 auto workItem = [&](
UInt_t workerID) {
36 auto wh1d = h1d.Get();
38 auto wh1dr = h1dr.Get();
41 for (
UInt_t i = 0; i < nNumbers; ++i) {
42 x = workerRndm.Gaus(3.);
49 std::vector<std::thread> workers;
52 for (
auto workerID :
ROOT::
TSeqI(nWorkers)) {
53 workers.emplace_back(workItem, workerID);
57 for (
auto &&worker : workers)
61 auto fh1d = h1d.Merge();
62 auto fh1dr = h1dr.Merge();
65 auto c =
new TCanvas(
"c",
"c", 800, 800);
R__EXTERN TStyle * gStyle
A wrapper to make object instances thread private, lazily.
@ kAutoBinPTwo
different than 1.
Random number generator class based on M.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
void EnableThreadSafety()
Enable support for multi-threading within the ROOT code in particular, enables the global mutex to ma...