void SNetDistribWaitExit(snet_info_t *info) { pthread_mutex_lock(&exitMutex); while (running) pthread_cond_wait(&exitCond, &exitMutex); pthread_mutex_unlock(&exitMutex); SNetReferenceDestroy(); }
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(); }