MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / stores_clear

Method stores_clear

fs/cache/cache.cpp:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void ICachePool::stores_clear()
70{
71 if (m_thread_pool) {
72 auto pool = static_cast<photon::ThreadPoolBase*>(m_thread_pool);
73 m_thread_pool = nullptr;
74 photon::delete_thread_pool(pool);
75 }
76 cast(m_stores)->clear();
77}
78
79ICacheStore* ICachePool::open(std::string_view filename, int flags, mode_t mode){
80 char store_name[4096];

Callers 1

~FileCachePoolMethod · 0.80

Calls 2

delete_thread_poolFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected