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