Browse Source

potential fix for lifetime of cache data take two

master
Constantin Fürst 11 months ago
parent
commit
0f843d9282
  1. 2
      qdp_project/src/benchmark/pipelines/MAX_scan_filter_pipe.h

2
qdp_project/src/benchmark/pipelines/MAX_scan_filter_pipe.h

@ -330,7 +330,7 @@ public:
// after the copy task has finished we obtain the pointer to the cached // after the copy task has finished we obtain the pointer to the cached
// copy of data_b which is then used from now on // copy of data_b which is then used from now on
base_t* data_ptr = reinterpret_cast<base_t*>(data->GetDataLocation());
data_ptr = reinterpret_cast<base_t*>(data->GetDataLocation());
// nullptr is still a legal return value for CacheData::GetLocation() // nullptr is still a legal return value for CacheData::GetLocation()
// even after waiting, so this must be checked // even after waiting, so this must be checked

Loading…
Cancel
Save