View Single Post
Old 04-18-2006, 11:30 PM   #2 (permalink)
AssKoala
Anti-Zealot
 
AssKoala's Avatar
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 72
AssKoala is on a distinguished road
Send a message via AIM to AssKoala Send a message via MSN to AssKoala Send a message via Yahoo to AssKoala
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.
AssKoala is offline   Reply With Quote