MCPcopy Create free account
hub / github.com/apache/arrow / ThreadSafeMemoizer

Method ThreadSafeMemoizer

cpp/src/arrow/util/cache_internal.h:121–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120 template <typename F>
121 ThreadSafeMemoizer(F&& func, int32_t cache_capacity)
122 : func_(std::forward<F>(func)), cache_(cache_capacity) {}
123
124 // The memoizer can't return a pointer to the cached value, because
125 // the cache entry may be evicted by another thread.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected