POSIX Thread之one-time initializition
5.1 一次初始化(One-time initialization) typedef int pthread_once_t:在bits/pthreadtypes.h中定义 #define PTHREAD_ONCE_INIT 0 在pthread.h中定义 pthread_once_t once_control = PTHREAD_ONCE_INIT; int pt
翻译
2009-04-09 18:07:00 ·
649 阅读 ·
0 评论