Changeset 1e7a765
- Timestamp:
- Sep 30, 2023, 10:36:42 PM (2 months ago)
- Branches:
- master
- Children:
- 147a137
- Parents:
- 0bb64bfa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/heap.cfa
r0bb64bfa r1e7a765 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Sep 11 11:21:10202313 // Update Count : 161 512 // Last Modified On : Sat Sep 30 17:31:15 2023 13 // Update Count : 1617 14 14 // 15 15 … … 53 53 #define TLSMODEL __attribute__(( tls_model("initial-exec") )) 54 54 55 //#define __STATISTICS__55 #define __STATISTICS__ 56 56 57 57 enum { … … 681 681 682 682 static HeapStatistics & collectStats( HeapStatistics & stats ) with( heapMaster ) { 683 lock( mgrLock );683 lock( heapMaster.mgrLock ); 684 684 685 685 stats += heapMaster.stats; … … 688 688 } // for 689 689 690 unlock( mgrLock );690 unlock( heapMaster.mgrLock ); 691 691 return stats; 692 692 } // collectStats 693 693 694 694 static inline void clearStats() { 695 lock( mgrLock );695 lock( heapMaster.mgrLock ); 696 696 697 697 // Zero the heap master and all active thread heaps. … … 701 701 } // for 702 702 703 unlock( mgrLock );703 unlock( heapMaster.mgrLock ); 704 704 } // clearStats 705 705 #endif // __STATISTICS__
Note: See TracChangeset
for help on using the changeset viewer.