pthread_attr_init(&attr);
/* We don't need to join this thread */
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
pthread_create(&thread, &attr, func, NULL);
pthread_attr_destroy(&attr);
/* Do some stuff */
...
/* Now tell thread to continue */
pthread_mutex_lock(&suspend_mutex);
ready_to_go = 1;
pthread_mutex_unlock(&suspend_mutex);
pthread_cond_signal(&suspend_cond);
}
matt.
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.