#include "mediapipe/framework/calculator_context_manager.h"
#include <utility>
#include "absl/log/absl_check.h"
#include "absl/memory/memory.h"
#include "absl/synchronization/mutex.h"
#include "mediapipe/framework/port/logging.h"
namespace mediapipe {
void CalculatorContextManager::Initialize(
CalculatorState* calculator_state,
std::shared_ptr<tool::TagMap> input_tag_map,
std::shared_ptr<tool::TagMap> output_tag_map,
bool calculator_run_in_parallel) { … }
absl::Status CalculatorContextManager::PrepareForRun(
std::function<absl::Status(CalculatorContext*)> setup_shards_callback) { … }
void CalculatorContextManager::CleanupAfterRun() { … }
CalculatorContext* CalculatorContextManager::GetDefaultCalculatorContext()
const { … }
CalculatorContext* CalculatorContextManager::GetFrontCalculatorContext(
Timestamp* context_input_timestamp) { … }
CalculatorContext* CalculatorContextManager::PrepareCalculatorContext(
Timestamp input_timestamp) { … }
void CalculatorContextManager::RecycleCalculatorContext() { … }
bool CalculatorContextManager::HasActiveContexts() { … }
}