I am using gcc 4.6.1, but will be using other compilers as well. My question is: Does std::thread call pthread_create?
The background is, that i want to use a library which overloads pthread_create.
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
std::threadis not required to call any particular underlying thread library. Implementations of the standard library are free to use whatever they want, so long as their behavior matches the standard. If a standard library ships with a compiler for a specific platform, that standard library implementation may directly call OS functions.Remember: use of the standard library is portable. Implementations of it don’t have to be.