Re: [ROOT] Win and multithreading

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Fri Jul 27 2001 - 16:19:37 MEST


Hi Axel,

  currently ROOT is not thread safe for this kind of operations (one
global gFile for example). Your application is interesting and it would
be worth while to make ROOT thread safe for this kind of operations.
We can wrap gFile in a thread specific data structure like we did for
gPad, but that is not for tomorrow.

Cheers, Fons.



Axel Naumann wrote:
> 
> Hi,
> 
> did anyone ever try to run Root compiled with --build=thread on Windows2k? I
> get the following errors (repeated multiple times for different branches)
> when reading data from two trees in two threads (one tree each) created by
> ::CreateThread (defined in windows.h):
> 
> R__unzip: error during decompression
> Error in <TBasket::ReadBasketBuffers>: fObjlen = 31244, nout = 0
> Error in <TBranchElement::GetBasket>: File problem at address:196653, basket
> see
> kkey=196653, branch:TPRTParticle._track
> 
> With only one thread it works fine, but if I have two threads (reading
> different files==trees) it crashes. Did I do something wrong when compiling
> root? I called "./configure win32 --build=thread,debug".
> 
> (Root 3.01/06 sources, VC6.0)
> 
> Cheers, Axel.

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:53 MET