Multithread security problem
I maintian a MFC program which invokes some class written in plain C++ code. These plain c++ class contain multithread member functions and the MFC program invokes those member functions. I've read some articles that say in MFC program you should use AfxBeginThread instead of CreateThread and _beginthreadex, if not to do the replacement, there'll cause some mulitithread security problems.
I'm curious that will it cause security problems in my MFC program? If will, how can I resolve them? Should I use MFC mulitithread function in these plain c++ code?
PS. In those plain c++ code, they use CreateThread to run thread functions now and using /MD switch. I consider I may use _beginthreadex to replace those CreateThread()s for safty. Am I right?