MCPcopy Create free account
hub / github.com/F-Stack/f-stack / HashGetFirst

Method HashGetFirst

adapter/micro_thread/hash_list.h:194–206  ·  view source on GitHub ↗

* @brief traverse hash list, low performance, only for remove. */

Source from the content-addressed store, hash-verified

192 * @brief traverse hash list, low performance, only for remove.
193 */
194 HashKey* HashGetFirst() {
195 if (!_buckets) {
196 return NULL;
197 }
198
199 for (int i = 0; i < _max; i++) {
200 if (_buckets[i]) {
201 return _buckets[i];
202 }
203 }
204
205 return NULL;
206 }
207
208private:
209

Callers 3

~CNetMgrMethod · 0.80
~MsgBuffPoolMethod · 0.80
~TcpKeepMgrMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected