在pthread.h头文件中:
extern int pthread_once (pthread_once_t *__once_control,
void (*__init_routine) (void)) __nonnull ((1, 2));
extern int pthread_atfork (void (*__prepare) (void),
void (*__parent) (void),
void (*__child) (void)) __THROW
我想请教的是__nonnull
和__THROW
的定义/实现在哪里?(我翻遍了头文件都没找到...), 它们的作用是什么?
先提前表示感谢!
__THROW的定义在 include/sys/cdefs.h
__nonnull
参见
https://code.woboq.org/qt5/in...