pthread 的问题
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);
}