| 26 | using baidu::paddle_serving::predictor::general_model::Response; |
| 27 | |
| 28 | RequestCache::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 | |
| 35 | RequestCache::~RequestCache() { |
| 36 | bstop_ = true; |
nothing calls this directly
no test coverage detected