00001 // @(#)root/thread:$Id: TWin32ThreadFactory.h 29797 2009-08-17 14:35:51Z rdm $ 00002 // Author: Bertrand Bellenot 20/10/2004 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2004, 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_TWin32ThreadFactory 00014 #define ROOT_TWin32ThreadFactory 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TWin32ThreadFactory // 00019 // // 00020 // This is a factory for Win32 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 TWin32ThreadFactory : public TThreadFactory { 00034 00035 public: 00036 TWin32ThreadFactory(const char *name = "Win32", const char *title = "Win32 Thread Factory"); 00037 virtual ~TWin32ThreadFactory() { } 00038 00039 virtual TMutexImp *CreateMutexImp(Bool_t recursive); 00040 virtual TConditionImp *CreateConditionImp(TMutexImp *m); 00041 virtual TThreadImp *CreateThreadImp(); 00042 00043 ClassDef(TWin32ThreadFactory,0) // Win32 thread factory 00044 }; 00045 00046 #endif