_beginthread()
and _beginthreadex()
was required by earlier versions of the Microsoft CRT to initialize thread-local state. The strtok()
function would be an example. That's been fixed, that state now gets dynamically initialized, at least since VS2005. Using CreateThread()
no longer causes problems.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…