pthread_once()的使用方法

int pthread_once(pthread_once_t *once_control, void (*init_routine) (void)) 这个函数使用初值为PTHREAD_ONCE_INIT的once_control变量保证init_routine()函数在本进程执行序列中仅执行一次。函数 #include<stdio.h> 2 #include<pthread.h> 3
相关文章
相关标签/搜索