c++多线程常用函数

mac2025-03-20  12

1、创建线程

CreateThread

2、设置线程的优先级

    SetThreadPriority(m_MotionThread,THREAD_PRIORITY_HIGHEST); //设置线程优先级,最高等级

3、释放线程

ResumeThread()

4、挂起线程

SuspendThread()

5、退出线程

TerminateThread()

6、关闭句柄

CloseHandel()

 

 

最新回复(0)