2
私はスレッドを開始するためにWindows APIを使用するとき_beginthreadex()
CreateThread()
より優先されているstackoverflowで読む。_beginthreadexでスレッドを開始するには?
私はCreateThread()
を使用して、このようなスレッドを作成しています:
DWORD WINAPI ThreadFunc(void* data)
{
// code for the thread functionality.
}
HANDLE Multicast = CreateThread(NULL, 0, ThreadFunc, NULL, 0, NULL);
if (Multicast) { } // thread started successfully.
私は_beginthreadex()
はなくCreateThread()
でこれを行うにはどうすればよいですか?
例を投稿できますか?