日期:2014-05-16 浏览次数:20752 次
void WaitEvent()
{
pthread_cond_wait(&st_csCondWait,&st_csMutex);
pthread_mutex_lock(&st_csMutex);
}
void ActiveEvent()
{
pthread_cond_signal(&st_csCondWait);
pthread_mutex_unlock(&st_csMutex);
}
void WaitEvent()
{
pthread_mutex_lock(&st_csMutex);
pthread_cond_wait(&st_csCondWait,&st_csMutex);
pthread_mutex_unlock(&st_csMutex);
}
void ActiveEvent()
{
pthread_cond_signal(&st_csCondWait);
}