Loading

随笔分类 -  进程操作

摘要:首部 线程中的条件变量 创建并初始化 #include <pthread.h> int pthread_cond_init(pthread_cond_t *restrict cond, const pthread_condattr_t *restrict attr); pthread_cond_t 阅读全文
posted @ 2021-01-12 13:41 流缘飞雨 阅读(81) 评论(0) 推荐(0)
摘要:首部 信号量 poxis 标准 创建初始化 #include <semaphore.h> int sem_init(sem_t *sem, int pshared, unsigned int value); Link with -pthread. 入口: sem 带初始化的信号量的地址 pshare 阅读全文
posted @ 2021-01-12 10:19 流缘飞雨 阅读(134) 评论(0) 推荐(0)