How to separate a stream from Windows C ++

How to separate a stream from windows in C++ . On Posix we have pthread_detach(pthread_self()); . How to do this surrounded by windows.

+4
source share
1 answer

Assuming you use _ beginthreadex or CreateThread to create a thread, you just need to close the thread handle using CloseHandle .

+10
source

Source: https://habr.com/ru/post/1437975/


All Articles