| 119 | |
| 120 | //------------------------------- Members ---------------------------------- |
| 121 | struct Control { |
| 122 | ~Control() { |
| 123 | delete[] _freeBlocks; |
| 124 | } |
| 125 | index_type _size{0}; |
| 126 | aligned_type* _buffer{nullptr}; //non-owning |
| 127 | index_type* _freeBlocks{nullptr}; |
| 128 | ssize_t _freeBlockIndex{-1}; |
| 129 | size_t _numHeapAllocatedBlocks{0}; |
| 130 | mutable SpinLock _spinlock; |
| 131 | }; |
| 132 | std::shared_ptr<Control> _control; |
| 133 | }; |
| 134 |
nothing calls this directly
no outgoing calls
no test coverage detected