MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / threadModelStorage

Method threadModelStorage

native/agent/ModelReusableAgent.cpp:425–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423 }
424
425 void ModelReusableAgent::threadModelStorage(const std::weak_ptr<ModelReusableAgent> &agent) {
426 int saveInterval = 1000 * 60 * 10; // save model per 10 min
427 while (!agent.expired()) {
428 agent.lock()->saveReuseModel(agent.lock()->_modelSavePath);
429 std::this_thread::sleep_for(std::chrono::milliseconds(saveInterval));
430 }
431 }
432
433#ifdef __ANDROID__
434#define STORAGE_PREFIX "/sdcard/fastbot_"

Callers

nothing calls this directly

Calls 1

saveReuseModelMethod · 0.80

Tested by

no test coverage detected