Changeset 3392 in Sophya for trunk/SophyaLib/HiStats/ntuple.h


Ignore:
Timestamp:
Nov 22, 2007, 7:25:40 PM (18 years ago)
Author:
ansari
Message:

Implementation NTuple::Fill(), BaseDataTable:;AddRow()/GetRow() thread-safe - Reza 22/11/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/ntuple.h

    r3205 r3392  
    2121//  Forward class declaration for Fits handler
    2222class FITS_NTuple;
     23//  Forward class declaration for Thread-safe operations
     24class ThSafeOp;
    2325
    2426//! Class for creation and management of double or float data sets in a table
     
    3133  NTuple(const NTuple& NT);
    3234  virtual ~NTuple();
     35
     36  // Activate/deactivate thread-safe Fill operation
     37  void SetThreadSafe(bool fg=true);
     38  //! Return true if Fill  operations are thread-safe
     39  inline bool IsThreadSafe() const { return ((mThS)?true:false); }
    3340
    3441  NTuple& operator = (const NTuple& NT);
     
    102109  DVList* mInfo;        // Infos (variables) attachees au NTuple
    103110 
     111  ThSafeOp* mThS;       // != NULL -> Thread safe operations
    104112};
    105113
Note: See TracChangeset for help on using the changeset viewer.