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

Method InitClearThread

libcppcryptfs/util/KeyCache.cpp:87–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86
87bool KeyCache::InitClearThread()
88{
89
90 static once_flag init_thread_once_flag;
91
92 std::call_once(init_thread_once_flag, [this]() {
93 m_clearEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
94 if (m_clearEvent) {
95 m_clearThread = CreateThread(NULL, 0, ClearThreadProc, m_clearEvent, 0, NULL);
96 }
97 });
98
99 return m_clearThread != NULL;
100}
101
102void KeyCache::StopClearThread()
103{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected