今天看关于pthread_create()原型:
extern int pthread_create __P ((pthread_t *__thread, __const pthread_attr_t *__attr,void *(*__start_routine) (void *), void *__arg));
发现有个奇怪的 __P, 原来这个为了与非ANSI编译器的兼容.
http://mail-index.netbsd.org/tech-misc/2000/01/21/0000.html
本文详细解析了pthread_create()函数的原型,并解释了__P的存在是为了与非ANSI编译器兼容,提供了关于线程创建的深入洞察。
1682

被折叠的 条评论
为什么被折叠?



