68 #ifdef XSENS_USE_DEBUG_COUNTERS
69 volatile std::atomic_int XsVector_allocCount_value(0);
70 volatile std::atomic_int XsVector_freeCount_value(0);
72 volatile std::atomic_int XsMatrix_allocCount_value(0);
73 volatile std::atomic_int XsMatrix_freeCount_value(0);
75 volatile std::atomic_int XsArray_allocCount_value(0);
76 volatile std::atomic_int XsArray_freeCount_value(0);
82 return XsVector_allocCount_value.exchange(0) + XsVector_freeCount_value.exchange(0);
87 return XsVector_allocCount_value.load();
92 return XsVector_freeCount_value.load();
97 return ++XsVector_allocCount_value;
102 return ++XsVector_freeCount_value;
107 return XsMatrix_allocCount_value.exchange(0) + XsMatrix_freeCount_value.exchange(0);
112 return XsMatrix_allocCount_value.load();
117 return XsMatrix_freeCount_value.load();
122 return ++XsMatrix_allocCount_value;
127 return ++XsMatrix_freeCount_value;
132 return XsArray_allocCount_value.exchange(0) + XsArray_freeCount_value.exchange(0);
137 return XsArray_allocCount_value.load();
142 return XsArray_freeCount_value.load();
147 return ++XsArray_allocCount_value;
152 return ++XsArray_freeCount_value;