Re: [ROOT] histos restrictions

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Nov 27 2003 - 22:39:32 MET


If you only update your histogram (filling it in a loop in a separate
thread), you do not need to redraw your histogram to update the 
pad/canvas. You just have to gPad->Modified(); gPad->Update();

When running with Threads (class TThread), gPad is protected
internally using a Mutex. Use this "pointer" to send messages
to your pad.

Rene Brun


On 
Thu, 27 Nov 2003, Lukasz Slusarczyk wrote:

> > Use TPad::SetEditable(kFALSE)
> 
>   Great, but sometimes my thread (the one responsible for updating)
> tries to update histogram, and then I must for a one short period do
> SetEditable(kTRUE), because it is probably impossible to draw histogram on
> canvas which is not editable. And during this time when I click canvas it
> causes Segmentation Fault.
> 
>   This period is in my case not small enought. Is there any other way to 
> avoid this problem (maybe mutex or something...)? Could You suggest me 
> something?
> 
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET