//+SEQ,CopyRight,T=NOINCLUDE. #ifndef ROOT_TThreadFactory #define ROOT_TThreadFactory ////////////////////////////////////////////////////////////////////////// // // // TThreadFactory // // // // This ABC is a factory for thread components. Depending on which // // factory is active one gets either Posix, Solaris or WinNT threads. // // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TNamed //*KEEP,TNamed. #include "TNamed.h" //*KEND. #endif class TMutexImp; class TConditionImp; class TThreadImp; class TThread; class TThreadFactory : public TNamed { public: TThreadFactory(const char *name = "Unknown", const char *title = "Unknown Thread Factory"); virtual ~TThreadFactory() { } virtual TMutexImp *CreateMutexImp() = 0; virtual TConditionImp *CreateConditionImp(TMutexImp *m) = 0; virtual TThreadImp *CreateThreadImp() = 0; ClassDef(TThreadFactory,0) // Thread factory ABC }; R__EXTERN TThreadFactory *gThreadFactory; #endif