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

Method add

cppcryptfs/dokan/MountPointManager.cpp:53–64  ·  view source on GitHub ↗

MountPointManager becomes owner of tdata

Source from the content-addressed store, hash-verified

51
52// MountPointManager becomes owner of tdata
53bool MountPointManager::add(const wchar_t *mountpoint, CryptThreadData* tdata)
54{
55 bool res = true;
56 try {
57 auto res = m_tdatas.emplace(mountpoint, tdata);
58 _ASSERT(res.second); // that it wasn't already there
59 } catch (...) {
60 delete tdata;
61 res = false;
62 }
63 return res;
64}
65
66CryptThreadData *MountPointManager::get(const wchar_t *mountpoint)
67{

Callers 1

mount_crypt_fsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected