MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / get_open_handle_count

Method get_open_handle_count

cppcryptfs/dokan/MountPointManager.cpp:246–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244
245
246int MountPointManager::get_open_handle_count(const wchar_t *mountpoint)
247{
248 int count = 0;
249
250 if (!mountpoint) {
251 for (auto& td : m_tdatas) {
252 count += static_cast<int>(td.second->con.m_open_handles.size());
253 }
254 } else {
255 auto it = m_tdatas.find(mountpoint);
256 if (it == m_tdatas.end()) {
257 return -1;
258 }
259 count = static_cast<int>(it->second->con.m_open_handles.size());
260 }
261
262 return count;
263}

Callers 1

get_open_handle_countFunction · 0.80

Calls 2

sizeMethod · 0.80
findMethod · 0.80

Tested by

no test coverage detected