| 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(); |
nothing calls this directly
no test coverage detected