摘要:
(转载)http://bbs.chinaunix.net/thread-836577-1-1.html仅执行一次的操作int pthread_once(pthread_once_t *once_control, void (*init_routine) (void))本函数使用初值为PTHREAD_ONCE_INIT的once_control变量保证init_routine()函数在本进程执行序列中仅执行一次。#include <semaphore.h>#include <sys/types.h>#include <dirent.h>#include < 阅读全文
posted @ 2013-05-02 11:09
robotke1
阅读(1627)
评论(0)
推荐(0)

浙公网安备 33010602011771号