MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / free

Function free

lite/test/test_network_c.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void free(LiteDeviceType device, int, void* ptr) {
49 m_nr_left--;
50 LITE_ASSERT(device == LiteDeviceType::LITE_CPU);
51#ifdef WIN32
52 _aligned_free(ptr);
53#else
54 ::free(ptr);
55#endif
56};
57
58#define NUMBER_THREDS (4)
59std::vector<std::thread::id> thread_ids(NUMBER_THREDS);

Callers 15

process_one_taskMethod · 0.85
dec_refMethod · 0.85
dec_weak_refMethod · 0.85
freeMethod · 0.85
freeMethod · 0.85
svsprintfFunction · 0.85
config_model_internelMethod · 0.85
output_fileMethod · 0.85
TESTFunction · 0.85
releaseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected