Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TPosixThreadFactory.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/thread:$Id$
0002 // Author: Fons Rademakers   01/07/97
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, 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_TPosixThreadFactory
0014 #define ROOT_TPosixThreadFactory
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TPosixThreadFactory                                                  //
0019 //                                                                      //
0020 // This is a factory for Posix thread components.                       //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 #include "TThreadFactory.h"
0025 
0026 class TMutexImp;
0027 class TConditionImp;
0028 class TThreadImp;
0029 
0030 
0031 class TPosixThreadFactory : public TThreadFactory {
0032 
0033 public:
0034    TPosixThreadFactory(const char *name = "Posix", const char *title = "Posix Thread Factory");
0035    virtual ~TPosixThreadFactory() { }
0036 
0037    TMutexImp      *CreateMutexImp(Bool_t recursive) override;
0038    TConditionImp  *CreateConditionImp(TMutexImp *m) override;
0039    TThreadImp     *CreateThreadImp() override;
0040 
0041    ClassDefOverride(TPosixThreadFactory,0)  // Posix thread factory
0042 };
0043 
0044 #endif