K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-08-27T03:09:39.569309Z K 7 svn:log V 323 In suspend_common(), don't wait for a thread which is in creation, because pthread_suspend_all_np() may have already suspended its parent thread. Add locking code in pthread_suspend_all_np() to only allow one thread to suspend other threads, this eliminates a deadlock where two or more threads try to suspend each others. END