| 757 | } |
| 758 | |
| 759 | bool ConfigStorage::getNextSession(TraceSession& session, GET_FLAGS getFlag, ULONG& nextIdx) |
| 760 | { |
| 761 | TraceCSHeader* header = m_sharedMemory->getHeader(); |
| 762 | |
| 763 | while (nextIdx < header->slots_cnt) |
| 764 | { |
| 765 | TraceCSHeader::Slot* slot = header->slots + nextIdx; |
| 766 | nextIdx++; |
| 767 | |
| 768 | if (slot->used) |
| 769 | return readSession(slot, session, getFlag); |
| 770 | } |
| 771 | return false; |
| 772 | } |
| 773 | |
| 774 | bool ConfigStorage::readSession(TraceCSHeader::Slot* slot, TraceSession& session, GET_FLAGS getFlag) |
| 775 | { |