Browse Source

delete the copy-constructor for cache as copying it is undesired behaviour

master
Constantin Fürst 11 months ago
parent
commit
e4a681ac1e
  1. 2
      offloading-cacher/cache.hpp

2
offloading-cacher/cache.hpp

@ -237,6 +237,8 @@ namespace dsacache {
std::unique_ptr<CacheData> GetFromCache(uint8_t* src, const size_t size, const int dst_node); std::unique_ptr<CacheData> GetFromCache(uint8_t* src, const size_t size, const int dst_node);
public: public:
Cache(const Cache& other) = delete;
// initializes the cache with the two policy functions // initializes the cache with the two policy functions
// only after this is it safe to use in a threaded environment // only after this is it safe to use in a threaded environment
void Init(CachePolicy* cache_policy_function, CopyPolicy* copy_policy_function); void Init(CachePolicy* cache_policy_function, CopyPolicy* copy_policy_function);

Loading…
Cancel
Save