The
pthread_suspend_np() function suspends the
thread given as argument. If
thread is the currently running thread as returned by
pthread_self(3), the function fails and returns
EDEADLK. Otherwise, it removes the named thread from the running queue, and adds it to the suspended queue. The
thread will remain blocked until
pthread_resume_np() is called on it. In other words,
pthread_resume_np() resumes the
thread given as argument, if it was suspended.