]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/STEERBase/AliVEventHandler.h
Added basic locking for the analysis manager session and data handlers to protect...
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliVEventHandler.h
index c1ddbb18b5be8bf038a21a83017b240af63b4d0a..cc7122529dd79b100a6c7aecf64c29f3bd7540c0 100644 (file)
@@ -17,6 +17,9 @@ class TTree;
 class AliVEventHandler : public TNamed {
 
  public:
+enum EEventHandlerFlags {
+   kHandlerLocked       = BIT(14)
+};
     AliVEventHandler();
     AliVEventHandler(const char* name, const char* title);
     virtual ~AliVEventHandler();
@@ -43,6 +46,11 @@ class AliVEventHandler : public TNamed {
     virtual Bool_t       TerminateIO()                    = 0;
     //
     virtual Bool_t       Notify() { return TNamed::Notify(); };
+    // Security
+    Bool_t               IsLocked() const {return TObject::TestBit(kHandlerLocked);}
+    void                 Lock();
+    void                 UnLock();
+    void                 Changed();
  private :
   ClassDef(AliVEventHandler, 1);
 };