attempt to clear all CPU caches on a multi-CPU machine
| 181 | |
| 182 | // attempt to clear all CPU caches on a multi-CPU machine |
| 183 | static void ClearCPUCache(size_t cacheSize) |
| 184 | { |
| 185 | vtkSmartPointer<vtkMultiThreader> threader = vtkSmartPointer<vtkMultiThreader>::New(); |
| 186 | threader->SetSingleMethod(ClearOneCPUCache, &cacheSize); |
| 187 | threader->SingleMethodExecute(); |
| 188 | } |
| 189 | |
| 190 | // verify that everything is set the way that we expect |
| 191 | static void PrintInfo(vtkThreadedImageAlgorithm* filter, std::ostream& os) |
no test coverage detected