ROOT and Threads

From: Greg Holden (gholden@jlab.org)
Date: Wed Jan 05 2000 - 16:03:26 MET


Hello Rooters,

I have a ROOT program that reads in some information from a file and makes
some histograms.  A problem arises when I try to read instead from an "ET
Ring" (a kindof circular event buffer with processes writing and reading
at the same time).  The ET ring is a set of libraries that work under
other programs and I mearly call some functions, but these functions
require the use of threads and therefor the -mt (multithread) option to
compile correctly.

If I use the -mt option on my ROOT code, the program halts when it opens,
and if I do not, then I cannot create the threads. My class that uses
threads does not include any ROOT libraries.  I was hoping I could compile
this class with the -mt option and the rest without but this does not seem
to work.  I believe I need the -mt option when I link all my object files,
but this is what causes ROOT to halt on startup.

I am working on a Sun running SunOS 5.6 and using CC version 4.2 and ROOT 
v2.21.  Does anyone have any suggestions?

Thanks,
Greg.



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:16 MET