相关疑难解决方法(0)

C++在构造函数中使用此指针

C++,在类构造函数中,我启动了一个新的线程,其中this指针作为参数,将广泛用于线程(例如,调用成员函数).这是件坏事吗?为什么以及后果是什么?

我的线程启动过程位于构造函数的末尾.

c++ multithreading constructor this

25
推荐指数
1
解决办法
2万
查看次数

标签 统计

c++ ×1

constructor ×1

multithreading ×1

this ×1