在pthread源码中x86_64-linux-gnu/bits/pthreadtypes.h
typedef int __ONCE_ALIGNMENT pthread_once_t;
宏__ONCE_ALIGNMENT
在x86_64-linux-gnu/bits/pthreadtypes-arch.h
中定义:
#define __ONCE_ALIGNMENT
我很疑惑这里的__ONCE_ALIGNMENT
的作用? 还望各位大神解答!先提前表示感谢!!!
(( /|_/|
\\.._.' , ,\
/\ | '.__ v /
(_ . / " 系统: 4.9.0-kali4-amd64 Debian x86_64 GNU/Linux
) _)._ _ /
'.\ \|( / (
'' ''\\ \\
glibc/sysdeps/nptl/bits/thread-shared-types.h :
glibc/sysdeps/nptl/bits/pthreadtypes.h :
Maybe just an once_flag in threads call_once functions. (*~・ω・)~