Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 10:30:29

0001 // @(#)root/thread:$Id$
0002 // Author: Bertrand Bellenot  20/10/2004
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 
0013 #ifndef ROOT_TWin32ThreadFactory
0014 #define ROOT_TWin32ThreadFactory
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TWin32ThreadFactory                                                  //
0019 //                                                                      //
0020 // This is a factory for Win32 thread components.                       //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 #include "TThreadFactory.h"
0025 
0026 class TMutexImp;
0027 class TConditionImp;
0028 class TThreadImp;
0029 
0030 
0031 class TWin32ThreadFactory : public TThreadFactory {
0032 
0033 public:
0034    TWin32ThreadFactory(const char *name = "Win32", const char *title = "Win32 Thread Factory");
0035    virtual ~TWin32ThreadFactory() { }
0036 
0037    TMutexImp      *CreateMutexImp(Bool_t recursive) override;
0038    TConditionImp  *CreateConditionImp(TMutexImp *m) override;
0039    TThreadImp     *CreateThreadImp() override;
0040 
0041    ClassDefOverride(TWin32ThreadFactory,0)  // Win32 thread factory
0042 };
0043 
0044 #endif