MCPcopy Create free account
hub / github.com/apple/foundationdb / getHolder

Method getHolder

flow/include/flow/ThreadHelper.actor.h:150–156  ·  view source on GitHub ↗

Get the MultiCallbackHolder for holder if it exists, or nullptr.

Source from the content-addressed store, hash-verified

148
149 // Get the MultiCallbackHolder for holder if it exists, or nullptr.
150 MultiCallbackHolder* getHolder(ThreadMultiCallback* multiCallback) {
151 MultiCallbackHolder* h = &firstHolder;
152 while (h != nullptr && h->multiCallback != multiCallback) {
153 h = h->next;
154 }
155 return h;
156 }
157
158 // Destroy the given MultiCallbackHolder, freeing it if it is not firstHolder.
159 void destroyHolder(MultiCallbackHolder* h) {

Callers 4

addCallbackMethod · 0.80
clearCallbackMethod · 0.80
fireMethod · 0.80
errorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected