//!> 条件变量的基本作用
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
//!> 注意此处为了方便就使用静态变量吧
pthread_mutex_t
pthread_cond_t
int
//!> 线程1入口
void * entrance_1( void * arg )
{
}
//!> 线程2入口
void* entrance_2( void * arg )
{
|
背景:
阅读新闻
Linux 多线程编程( POSIX )( 五 )代码区
1.条件变量的基本作用 //!> 条件变量的基本作用 #include <stdio.h> #include <stdlib.h> #include <pthread.h> //!> 注意此处为了方便就使用静态变量吧 pthread_mutex_t pthread_cond_t int //!> 线程1入口 void * entrance_1( void * arg ) { } //!> 线程2入口 void* entrance_2( void * arg ) { |