Hello Walter, thanks for your detailed comments on the problem; sometimes things are not as simple as they seem, even if they might work! In fact, testing again the use of member functions within root TThread constructor (see previous mail's example), there _are_ problems with virtual functions; always the base class virtual function runs as thread, never the one of the derived class (observed for the egcs compiler of our Linux environment). However, the root TPosixThread implementation is unfortunately based on the pthread call of member function TThread::Fun with class instance pointer as argument; since TThread::Fun is non virtual, this works in our environment as desribed (probably will not work with other compilers/platforms?...) . best regards, Joern (Joern Adamczewski, go4 team DV&EE GSI Darmstadt)
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:40 MET