Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TWin32Thread.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: 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 #ifndef ROOT_TWin32Thread
0013 #define ROOT_TWin32Thread
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TWin32Thread                                                         //
0019 //                                                                      //
0020 // This class provides an interface to the Win32 thread routines.       //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 #include "TThreadImp.h"
0025 
0026 #include "Windows4Root.h"
0027 
0028 class TWin32ThreadCleanUp;
0029 
0030 class TWin32Thread : public TThreadImp {
0031 
0032 public:
0033    TWin32Thread() { }
0034    ~TWin32Thread() { }
0035 
0036    Int_t  Join(TThread *th, void **ret) override;
0037    Long_t SelfId() override;
0038    Int_t  Run(TThread *th, const int affinity = -1) override;
0039 
0040    Int_t  Kill(TThread *th) override;
0041 
0042    Int_t  SetCancelOff() override;
0043    Int_t  SetCancelOn() override;
0044    Int_t  SetCancelAsynchronous() override;
0045    Int_t  SetCancelDeferred() override;
0046    Int_t  CancelPoint() override;
0047 
0048    Int_t  CleanUpPush(void **main, void *free,void *arg) override;
0049    Int_t  CleanUpPop(void **main, Int_t exe) override;
0050    Int_t  CleanUp(void **main) override;
0051 
0052    Int_t  Exit(void *ret) override;
0053 
0054    ClassDefOverride(TWin32Thread,0)  // TWin32Thread class
0055 };
0056 
0057 
0058 class TWin32ThreadCleanUp {
0059 
0060 friend class TWin32Thread;
0061 
0062 private:
0063    void                *fRoutine;
0064    void                *fArgument;
0065    TWin32ThreadCleanUp *fNext;
0066 
0067 public:
0068    TWin32ThreadCleanUp(void **main,void *routine,void *arg);
0069    ~TWin32ThreadCleanUp() { }
0070 };
0071 
0072 #endif