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

Method setEndState

bolt/common/caching/AsyncDataCache.cpp:324–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324void CoalescedLoad::setEndState(State endState) {
325 std::lock_guard<std::mutex> l(mutex_);
326 state_ = endState;
327 if (promise_ != nullptr) {
328 promise_->setValue(true);
329 promise_.reset();
330 }
331}
332
333void CoalescedLoad::setEndState(State expectState, State tState, State fState) {
334 std::lock_guard<std::mutex> l(mutex_);

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected