Exemple #1
0
void SNetDistribWaitExit(snet_info_t *info)
{
  pthread_mutex_lock(&exitMutex);
  while (running) pthread_cond_wait(&exitCond, &exitMutex);
  pthread_mutex_unlock(&exitMutex);
  SNetReferenceDestroy();
}
Exemple #2
0
void SNetDistribWaitExit(snet_info_t *info)
{
  while(SNETGLOBWAIT != SNETGLOBWAITVAL);
  /*
  pthread_mutex_lock(&exitMutex);
  while (running) pthread_cond_wait(&exitCond, &exitMutex);
  pthread_mutex_unlock(&exitMutex);*/
  SNetReferenceDestroy();
}