threadsh2.C File Reference

#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

TH1Fhpx
TH1Ftotal
TH1Fhmain
TH1Fs1
TH1Fs2
TThreadthread1
TThreadthread2
TThreadthreadj
Bool_t finished


Function Documentation

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().


Variable Documentation

Bool_t finished

Definition at line 15 of file threadsh2.C.

TH1F * hmain

Definition at line 13 of file threadsh2.C.

Referenced by handle2().

TH1F* hpx

Definition at line 13 of file threadsh2.C.

TH1F * s1

Definition at line 13 of file threadsh2.C.

TH1F * s2

Definition at line 13 of file threadsh2.C.

TThread* thread1

Definition at line 14 of file threadsh2.C.

Referenced by joiner(), and threadsh2().

TThread * thread2

Definition at line 14 of file threadsh2.C.

Referenced by joiner(), and threadsh2().

TThread * threadj

Definition at line 14 of file threadsh2.C.

Referenced by threadsh2().

TH1F * total

Definition at line 13 of file threadsh2.C.


Generated on Tue Jul 5 16:09:38 2011 for ROOT_528-00b_version by  doxygen 1.5.1