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

Method FreePtr

adapter/micro_thread/mt_notify.h:282–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 };
281
282 void FreePtr(ValueType* ptr) {
283 if ((int)_ptr_list.size() >= _max_free) {
284 delete ptr;
285 _total--;
286 } else {
287 _ptr_list.push(ptr);
288 }
289 };
290
291protected:
292 PtrQueue _ptr_list;

Callers 3

FreeNtfyObjMethod · 0.80
FreeTcpKeepConnMethod · 0.80
FreeConnectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected