| 292 | }; |
| 293 | |
| 294 | void testSerialLRUCacheRecursion( int maxCost ) |
| 295 | { |
| 296 | SerialTestCache &cache = recursiveCache<SerialTestCache>(); |
| 297 | cache.clear(); |
| 298 | cache.setMaxCost( maxCost ); |
| 299 | if( cache.get( 40 ) != 102334155 ) |
| 300 | { |
| 301 | throw Exception( "Unexpected result" ); |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | void testParallelLRUCacheRecursion( int numIterations, size_t numValues, int maxCost ) |
| 306 | { |