32 auto workItem = [&](
UInt_t workerID) {
36 auto wh1d = h1d.Get();
38 auto wh1dr = h1dr.Get();
42 x = workerRndm.Gaus(3.);
49 std::vector<std::thread> workers;
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);
68 gStyle->SetOptStat(111110);
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 EnableThreadSafety()
Enable support for multi-threading within the ROOT code in particular, enables the global mutex to ma...