Get the MultiCallbackHolder for holder if it exists, or nullptr.
| 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) { |
no outgoing calls
no test coverage detected