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