MCPcopy Create free account
hub / github.com/bytedance/bolt / testingVisitDrivers

Method testingVisitDrivers

bolt/exec/Task.cpp:3154–3161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3152}
3153
3154void Task::testingVisitDrivers(const std::function<void(Driver*)>& callback) {
3155 std::lock_guard<std::timed_mutex> l(mutex_);
3156 for (int i = 0; i < drivers_.size(); ++i) {
3157 if (drivers_[i] != nullptr) {
3158 callback(drivers_[i].get());
3159 }
3160 }
3161}
3162
3163std::unique_ptr<memory::MemoryReclaimer> Task::MemoryReclaimer::create(
3164 const std::shared_ptr<Task>& task,

Callers 2

TEST_FFunction · 0.80
DEBUG_ONLY_TEST_FFunction · 0.80

Calls 2

sizeMethod · 0.45
getMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
DEBUG_ONLY_TEST_FFunction · 0.64