Re: TObject and pthread

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Wed, 19 Aug 2009 13:08:29 -0500


Hi Pierre-Luc,

If you are not using TThread, you are not activating any of the thread safety protection of ROOT.
And even if the R__NOSTATS should indeed avoid the problem you are encountering you are
likely to encountered many other problems.

Cheers,
Philippe.

Pierre-Luc Drouin wrote:
> Hi,
>
> I am currently using pthread... Should it work if I disabled
> TObjectTable using the preprocessing macro R__NOSTATS?
>
> Thanks!
>
> Philippe Canal wrote:
>> Hi Pierrer-Luc,
>>
>> Did you create just a pthread or did you use TThread (the later is
>> necessary for ROOT to know that it should be
>> in 'multi-thread' mode)?
>>
>> Cheers,
>> Philippe
>>
>> Pierre-Luc Drouin wrote:
>>> Is that possible that the class TObject is not compatible with
>>> multi-threading (pthread)? When I create and delete instances of my
>>> own classes that are derived from TObject, I get warning about
>>> missing objects in TObjectTable. I never get such warnings with a
>>> single thread... Is there a workaround this?
>>>
>>> Thanks!
>>> Pierre-Luc Drouin
>>>
>>>
>
Received on Wed Aug 19 2009 - 20:08:33 CEST

This archive was generated by hypermail 2.2.0 : Thu Aug 20 2009 - 23:50:02 CEST