MCPcopy Create free account
hub / github.com/fmtlib/fmt / ThreadMain

Method ThreadMain

test/gtest/gmock-gtest-all.cc:10827–10834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10825 };
10826
10827 static DWORD WINAPI ThreadMain(void* ptr) {
10828 // Transfers ownership.
10829 std::unique_ptr<ThreadMainParam> param(static_cast<ThreadMainParam*>(ptr));
10830 if (param->thread_can_start_ != nullptr)
10831 param->thread_can_start_->WaitForNotification();
10832 param->runnable_->Run();
10833 return 0;
10834 }
10835
10836 // Prohibit instantiation.
10837 ThreadWithParamSupport();

Callers

nothing calls this directly

Calls 2

WaitForNotificationMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected