static void* PThreadFunction(void* lpParam) { UserData* userData = static_cast<UserData*>(lpParam); userData->func(userData->param); return 0; }
static DWORD WINAPI WinThreadFunction(LPVOID lpParam) { UserData* userData = static_cast<UserData*>(lpParam); userData->func(userData->param); return 0; }