MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / ThreadMain

Method ThreadMain

tests/gtest/gtest-all.cc:10201–10208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10199 };
10200
10201 static DWORD WINAPI ThreadMain(void* ptr) {
10202 // Transfers ownership.
10203 std::unique_ptr<ThreadMainParam> param(static_cast<ThreadMainParam*>(ptr));
10204 if (param->thread_can_start_ != nullptr)
10205 param->thread_can_start_->WaitForNotification();
10206 param->runnable_->Run();
10207 return 0;
10208 }
10209
10210 // Prohibit instantiation.
10211 ThreadWithParamSupport();

Callers

nothing calls this directly

Calls 2

WaitForNotificationMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected