| 85 | |
| 86 | |
| 87 | bool 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 | |
| 102 | void KeyCache::StopClearThread() |
| 103 | { |
nothing calls this directly
no outgoing calls
no test coverage detected