| 705 | |
| 706 | public: |
| 707 | Y_FORCE_INLINE void Free(void* ptr) { |
| 708 | TNode* newFree = (TNode*)ptr; |
| 709 | if (AtomicAdd(AllocCount, 0) == 0) |
| 710 | Enqueue(&Head, newFree); |
| 711 | else |
| 712 | Enqueue(&Pending, newFree); |
| 713 | } |
| 714 | Y_FORCE_INLINE void* Alloc() { |
| 715 | TAtomic keepCounter = AtomicAdd(PendingToFreeListCounter, 0); |
| 716 | TNode* fl = Pending; |
no test coverage detected