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

Function free_sk_buffer

adapter/micro_thread/mt_cache.cpp:134–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void free_sk_buffer(TSkBuffMng* mng, TSkBuffer* buff)
135{
136 if ((NULL == mng) || (NULL == buff)) {
137 return;
138 }
139
140 TAILQ_INSERT_TAIL(&mng->free_list, buff, entry);
141 mng->count++;
142
143 buff->last_time = (uint32_t)(mt_time_ms() / 1000);
144 buff->data = buff->head;
145 buff->data_len = 0;
146}
147
148void recycle_sk_buffer(TSkBuffMng* mng, uint32_t now)
149{

Callers 3

rw_cache_destroyFunction · 0.85
cache_copy_outFunction · 0.85
cache_udp_recvFunction · 0.85

Calls 1

mt_time_msFunction · 0.85

Tested by

no test coverage detected