多线程编程中的内存泄露:CreateThread 与 _beginthreadex 的区别 在多线程编程中,使用 CreateThread 函数创建线程时需要注意内存泄露问题。虽然 _beginthreadex 函数可以在创建线程时分配一个 tiddata 结构,用于保存线程函数入口地址和一些线程全局变量,但如果使用 CreateThread 函数直接创建线程而不通过 _endthread C++ 15 次浏览 2024-06-17