Changeset 3208 in Sophya for trunk/SophyaLib/BaseTools/ndatablock.h
- Timestamp:
- Apr 10, 2007, 5:57:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ndatablock.h
r3172 r3208 10 10 #include "anydataobj.h" 11 11 #include <iostream> 12 13 #include "thsafeop.h" /* For thread safe operation (Ref.Count/Share) */ 12 14 13 15 namespace SOPHYA { … … 88 90 void Realloc(size_t nnew,bool force=false); 89 91 90 // ! Calls Delete() to set the size to zero (The memory is freed if last referenced structure)91 inline void Dealloc() { Delete(); }92 // Public, thread safe interface to Delete() (set the size to zero) 93 void Dealloc(); 92 94 93 95 // Informations pointeur/data … … 172 174 static size_t NallocData; //!< DEBUG: number of allocations (all type<T> classes) 173 175 static size_t NallocSRef; //!< DEBUG: number of references (all type<T> classes) 176 static ThSafeOp* gThsop; //!< DEBUG: for thread safe operation 174 177 175 178 size_t mSz; //!< size of data structure
Note:
See TracChangeset
for help on using the changeset viewer.