#include "TROOT.h"
#include "TCanvas.h"
#include "TFrame.h"
#include "TH1F.h"
#include "TRandom.h"
#include "TThread.h"
#include "TMethodCall.h"
Go to the source code of this file.
Functions | |
void * | handle1 (void *) |
void * | handle2 (void *) |
void * | joiner (void *) |
void | threadsh2 () |
Variables | |
TH1F * | hpx |
TH1F * | total |
TH1F * | hmain |
TH1F * | s1 |
TH1F * | s2 |
TThread * | thread1 |
TThread * | thread2 |
TThread * | threadj |
Bool_t | finished |
void* handle1 | ( | void * | ) |
Definition at line 17 of file threadsh2.C.
References c, TCanvas::cd(), TH1::Draw(), TH1::Fill(), TPad::GetFrame(), gRandom, gSystem, hpx, i, TThread::Lock(), TPad::Modified(), NULL, TRandom::Rannor(), TWbox::SetBorderMode(), TWbox::SetBorderSize(), TAttFill::SetFillColor(), TRandom::SetSeed(), TSystem::Sleep(), TThread::UnLock(), and TCanvas::Update().
Referenced by threadsh2().
void* handle2 | ( | void * | ) |
Definition at line 65 of file threadsh2.C.
References c, c1, TCanvas::cd(), TH1::Draw(), TH1::Fill(), TRandom::Gaus(), gRandom, gSystem, hmain, i, TRandom::Landau(), TThread::Lock(), TPad::Modified(), NULL, s1, s2, TAttFill::SetFillColor(), TPad::SetGrid(), TRandom::SetSeed(), TSystem::Sleep(), total, TThread::UnLock(), and TCanvas::Update().
Referenced by threadsh2().
void* joiner | ( | void * | ) |
Definition at line 129 of file threadsh2.C.
References finished, TThread::Join(), kTRUE, thread1, and thread2.
void threadsh2 | ( | ) |
Definition at line 139 of file threadsh2.C.
References finished, gSystem, handle1(), handle2(), TThread::Join(), joiner(), kFALSE, TSystem::ProcessEvents(), TThread::Ps(), TThread::Run(), TSystem::Sleep(), thread1, thread2, threadj, and TSystem::Unlink().
Definition at line 15 of file threadsh2.C.
Definition at line 13 of file threadsh2.C.
Definition at line 13 of file threadsh2.C.
Definition at line 13 of file threadsh2.C.
Definition at line 13 of file threadsh2.C.