00001 // @(#)root/thread:$Id: TPosixThreadFactory.h 29797 2009-08-17 14:35:51Z rdm $ 00002 // Author: Fons Rademakers 01/07/97 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 00013 #ifndef ROOT_TPosixThreadFactory 00014 #define ROOT_TPosixThreadFactory 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TPosixThreadFactory // 00019 // // 00020 // This is a factory for Posix thread components. // 00021 // // 00022 ////////////////////////////////////////////////////////////////////////// 00023 00024 #ifndef ROOT_TThreadFactory 00025 #include "TThreadFactory.h" 00026 #endif 00027 00028 class TMutexImp; 00029 class TConditionImp; 00030 class TThreadImp; 00031 00032 00033 class TPosixThreadFactory : public TThreadFactory { 00034 00035 public: 00036 TPosixThreadFactory(const char *name = "Posix", const char *title = "Posix Thread Factory"); 00037 virtual ~TPosixThreadFactory() { } 00038 00039 virtual TMutexImp *CreateMutexImp(Bool_t recursive); 00040 virtual TConditionImp *CreateConditionImp(TMutexImp *m); 00041 virtual TThreadImp *CreateThreadImp(); 00042 00043 ClassDef(TPosixThreadFactory,0) // Posix thread factory 00044 }; 00045 00046 #endif