MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / ThreadProc

Function ThreadProc

SampleApps/WebView2APISample/App.cpp:187–193  ·  view source on GitHub ↗

This function is the starting point for new threads. It will open a new app window.

Source from the content-addressed store, hash-verified

185
186// This function is the starting point for new threads. It will open a new app window.
187static DWORD WINAPI ThreadProc(void* pvParam)
188{
189 AppWindow* app = static_cast<AppWindow*>(pvParam);
190 new AppWindow(app->GetCreationModeId(), app->GetWebViewOption());
191 app->Release();
192 return RunMessagePump();
193}
194
195// Called on the main thread. Wait for all other threads to complete before exiting.
196static void WaitForOtherThreads()

Calls 3

GetCreationModeIdMethod · 0.80
ReleaseMethod · 0.80
RunMessagePumpFunction · 0.70

Tested by

no test coverage detected