MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / CheckThread

Method CheckThread

src/lib/ThreadGuard.cpp:19–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void ThreadGuard::CheckThread(const std::source_location& loc) const {
20#ifdef DEBUG
21 const auto thisThread = GetCurrentThreadId();
22 if (thisThread == mThreadID) {
23 return;
24 }
25 dprint(
26 "ThreadGuard mismatch: was {} ({:#x}), now {} ({:#x})",
27 mThreadID,
28 mThreadID,
29 thisThread,
30 thisThread);
31 dprint("Created at {}", mLocation);
32 dprint("Checking at {}", loc);
33 OPENKNEEBOARD_BREAK;
34#endif
35}
36
37ThreadGuard::~ThreadGuard() {
38 this->CheckThread();

Callers 12

~ThreadGuardMethod · 0.95
FlushCursorEventsMethod · 0.80
~KneeboardViewMethod · 0.80
SetTabsMethod · 0.80
PostCursorEventMethod · 0.80
SwapStateMethod · 0.80
SetTabViewsMethod · 0.80
GetTabIDsMethod · 0.80
ForceResizeMethod · 0.80
StopMethod · 0.80
DisposeAsyncMethod · 0.80
final_releaseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected