Reputation: 8968
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
Upvotes: 2
Views: 231
Reputation: 473966
std::thread
is 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.
Upvotes: 6