|
Wait on a condition variable.
pthread_suspend is not portable (and probably isn't POSIX). pthread_suspend probably wraps a call to pthread_cond_wait to a single function.
You can always write your own pthread_suspend and use that to make things more modular.
I realize this is a fairly old topic, but noone seems to have touched it.
__________________
If you always think like an expert, you'll always be a beginner. | "A handful of knowledgeable people is more effective than an army of fools" -Writing Secure Code, 2nd Ed.
|