> why a thread cannot suspend itself?
What would unsuspend it?
> If it's not too hard to modify the pth src, then which files should I
> hack so that a thread can suspend itself? Thanks.
No need. Just block on a condition variable and have another thread that
wishes to wake the thread signal the condition variable. Just make sure that
you also use a mutex and some variable to hold the predicate, you can't use
a naked condition variable.
DS
______________________________________________________________________
GNU Portable Threads (Pth) http://www.gnu.org/software/pth/
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager (Majordomo) [EMAIL PROTECTED]