_beginthread 创建线程发送参数

unsigned long _beginthread(
void(_cdecl *start_address)(void *), //声明为void (*start_address)(void *)形式
unsigned stack_size, //是线程堆栈大小,一般默认为0
void *arglist //向线程传递的参数,一般为结构体
);

 

    uintptr_t hthread = _beginthread(SendHeartBeat, 0, g_pLogInstance);
    WaitForSingleObject((HANDLE)hthread, INFINITE);

 

版权声明:本文为hshy原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/hshy/articles/11546827.html