Thread-safe usage of TFile, TBranch etc

Hi! I am new to ROOT and like to use it in a first step to store waveforms (x,y doubles) in a TFile. I already took a look at the examples and have one question: How do I use ROOT within my appliciation which uses threads (sorry, no TThreads) to create different waveforms. Each thread create up to 4 waveforms which should be stored within the file. Is there an example available?

Thank you very much, Alex

[quote]How do I use ROOT within my appliciation which uses threads (sorry, no TThreads) to create different waveforms[/quote]Without using TThread (at least creating one TThread) you must use ROOT only from one single thread as without the TThread ROOT does not know you are using it in multi thread mode and hence assumes it is in single thread mode and do not ‘waste’ time setting any mutex or semaphores.

Philippe.