diff options
author | kib <kib@FreeBSD.org> | 2016-05-12 06:55:42 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-05-12 06:55:42 +0000 |
commit | 324f9d9ba853523b268d1da2ff685be104a0b898 (patch) | |
tree | f63f789f6661fbdcd8880ada0630c70b88f61ff8 /share/man | |
parent | 4f8ce4509a035d7c39c6f848b47b7bdc17ebe1ed (diff) | |
download | FreeBSD-src-324f9d9ba853523b268d1da2ff685be104a0b898.zip FreeBSD-src-324f9d9ba853523b268d1da2ff685be104a0b898.tar.gz |
MFC r299115:
Warn about consequences of suspending threads in arbitrary state of
execution
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man3/pthread_resume_np.3 | 2 | ||||
-rw-r--r-- | share/man/man3/pthread_suspend_all_np.3 | 9 | ||||
-rw-r--r-- | share/man/man3/pthread_suspend_np.3 | 11 |
3 files changed, 18 insertions, 4 deletions
diff --git a/share/man/man3/pthread_resume_np.3 b/share/man/man3/pthread_resume_np.3 index 08f7cb9..d6235ce 100644 --- a/share/man/man3/pthread_resume_np.3 +++ b/share/man/man3/pthread_resume_np.3 @@ -57,7 +57,7 @@ function will fail if: The value specified by the .Fa tid argument is invalid. -.It Bq ESRC +.It Bq Er ESRC No thread could be found corresponding to the thread ID specified by the .Fa tid argument. diff --git a/share/man/man3/pthread_suspend_all_np.3 b/share/man/man3/pthread_suspend_all_np.3 index fdeab19..d78940e 100644 --- a/share/man/man3/pthread_suspend_all_np.3 +++ b/share/man/man3/pthread_suspend_all_np.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 13, 2003 +.Dd May 5, 2016 .Dt PTHREAD_SUSPEND_ALL_NP 3 .Os .Sh NAME @@ -44,6 +44,13 @@ The only exception is the current thread, the thread that called the .Fn pthread_suspend_all_np function. +.Pp +It is not safe for the caller of the +.Fn pthread_suspend_all_np +function to use any non-async signal safe functions, besides +.Xr pthread_resume_all_np 3 , +until threads are resumed, unless measures are taken to ensure +that all threads are suspended at safe points. .Sh SEE ALSO .Xr pthread_resume_all_np 3 , .Xr pthread_resume_np 3 , diff --git a/share/man/man3/pthread_suspend_np.3 b/share/man/man3/pthread_suspend_np.3 index 43d2b7d..c4bb645 100644 --- a/share/man/man3/pthread_suspend_np.3 +++ b/share/man/man3/pthread_suspend_np.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 13, 2003 +.Dd May 5, 2016 .Dt PTHREAD_SUSPEND_NP 3 .Os .Sh NAME @@ -40,6 +40,13 @@ The .Fn pthread_suspend_np function, called on an active thread, causes it to suspend. +.Pp +It is not safe for the caller of the +.Fn pthread_suspend_np +function to use any non-async signal safe functions, except +.Xr pthread_resume_np 3 , +until suspended thread is resumed, unless measures are taken to ensure +that the thread is suspended at a safe point. .Sh RETURN VALUES If successful, .Fn pthread_suspend_np @@ -56,7 +63,7 @@ An attempt was made to suspend the current thread. The value specified by the .Fa tid argument is invalid. -.It Bq ESRC +.It Bq Er ESRC No thread could be found corresponding to the thread ID specified by the .Fa tid argument. |