简体   繁体   中英

Does std::thread call pthread_create

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM