MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / RequestCache

Method RequestCache

core/predictor/framework/request_cache.cpp:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26using baidu::paddle_serving::predictor::general_model::Response;
27
28RequestCache::RequestCache(const int64_t size)
29 : cache_size_(size), used_size_(0) {
30 bstop_ = false;
31 thread_ptr_ = std::unique_ptr<std::thread>(
32 new std::thread([this]() { this->ThreadLoop(); }));
33}
34
35RequestCache::~RequestCache() {
36 bstop_ = true;

Callers

nothing calls this directly

Calls 1

ThreadLoopMethod · 0.95

Tested by

no test coverage detected