| 140 | } |
| 141 | |
| 142 | void PacketReadCache::unlock( unsigned cacheIndex ) |
| 143 | { |
| 144 | //??? why lockedEntry not used? |
| 145 | #ifdef E57_VERBOSE |
| 146 | std::cout << "PacketReadCache::unlock() called, cacheIndex=" << cacheIndex << std::endl; |
| 147 | #else |
| 148 | E57_UNUSED( cacheIndex ); |
| 149 | #endif |
| 150 | |
| 151 | if ( lockCount_ != 1 ) |
| 152 | { |
| 153 | throw E57_EXCEPTION2( ErrorInternal, "lockCount=" + toString( lockCount_ ) ); |
| 154 | } |
| 155 | |
| 156 | --lockCount_; |
| 157 | } |
| 158 | |
| 159 | void PacketReadCache::readPacket( unsigned oldestEntry, uint64_t packetLogicalOffset ) |
| 160 | { |
no test coverage detected