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

Method getAndClearNotify

bolt/exec/OutputBuffer.cpp:168–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168DataAvailable DestinationBuffer::getAndClearNotify() {
169 if (notify_ == nullptr) {
170 BOLT_CHECK_NULL(aliveCheck_);
171 return DataAvailable();
172 }
173 DataAvailable result;
174 result.callback = notify_;
175 result.sequence = notifySequence_;
176 result.data = getData(notifyMaxBytes_, notifySequence_, nullptr, nullptr);
177 clearNotify();
178 return result;
179}
180
181void DestinationBuffer::clearNotify() {
182 notify_ = nullptr;

Callers 6

checkIfDoneMethod · 0.80
deleteResultsMethod · 0.80
TEST_FFunction · 0.80

Calls 2

DataAvailableClass · 0.85
getDataFunction · 0.85

Tested by 1

TEST_FFunction · 0.64