
《posix多线程程序设计》
文章平均质量分 70
nwpu_cipher
这个作者很懒,什么都没留下…
展开
-
头文件errors.h
这个实践必备的头文件#ifndef __errors_h#define __errors_h#include #include #include #include #include #ifdef DEBUG#define DPRINTF(arg) prin原创 2011-10-16 19:15:05 · 1055 阅读 · 0 评论 -
线程的组织方式:流水线结构
流水线结构#include #include "errors.h"typedef struct stage_tag { pthread_mutex_t mutex; // 保持本阶段互斥的互斥锁 pthread_cond_t avail; // 是否空闲 p原创 2011-10-16 19:20:29 · 732 阅读 · 2 评论