27 const UInt_t nWorkers = 8U;
45 auto workItem = [&](
UInt_t workerID) {
49 auto wh1d = h1d.Get();
51 auto wh1dr = h1dr.Get();
54 for (
UInt_t i = 0; i < nNumbers; ++i) {
55 x = workerRndm.Gaus(3.);
62 std::vector<std::thread> workers;
66 workers.emplace_back(workItem, workerID);
70 for (
auto &&worker : workers)
74 auto fh1d = h1d.Merge();
75 auto fh1dr = h1dr.Merge();
Random number generator class based on M.
R__EXTERN TStyle * gStyle
A wrapper to make object instances thread private, lazily.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
R__EXTERN TVirtualMutex * gROOTMutex
Use Power(2)-based algorithm for autobinning.
void EnableThreadSafety()
Enables the global mutex to make ROOT thread safe/aware.
A pseudo container class which is a generator of indices.
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
virtual void Update()
Update canvas pad buffers.