diff options
author | ru <ru@FreeBSD.org> | 2003-02-24 22:53:26 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-02-24 22:53:26 +0000 |
commit | 0dea5415679a9db700f2846b28d2d8ff833032c7 (patch) | |
tree | 9409aa78bd0bf64293f9e45238d4a82861b7663b /share/man/man3/pthread_switch_add_np.3 | |
parent | 83d0e58172de7563f59519892b23c2fd0e80ca56 (diff) | |
download | FreeBSD-src-0dea5415679a9db700f2846b28d2d8ff833032c7.zip FreeBSD-src-0dea5415679a9db700f2846b28d2d8ff833032c7.tar.gz |
mdoc(7) police: Scheduled sweep.
Diffstat (limited to 'share/man/man3/pthread_switch_add_np.3')
-rw-r--r-- | share/man/man3/pthread_switch_add_np.3 | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/share/man/man3/pthread_switch_add_np.3 b/share/man/man3/pthread_switch_add_np.3 index 07476cf..9e7618c 100644 --- a/share/man/man3/pthread_switch_add_np.3 +++ b/share/man/man3/pthread_switch_add_np.3 @@ -30,7 +30,7 @@ .Sh NAME .Nm pthread_switch_add_np , .Nm pthread_switch_delete_np -.Nd threads context switches debugging primitives +.Nd thread context switches debugging primitives .Sh LIBRARY .Lb libc_r .Sh SYNOPSIS @@ -40,22 +40,22 @@ .Ft int .Fn pthread_switch_delete_np "pthread_switch_routine_t routine" .Sh DESCRIPTION -The application is allowed to monitor thread context switches inside -threading library. -An application can install routine that gets called everytime a thread -(explicitly created by the application with -.Fn pthread_create -function) gets context switched. -This routine gets passed the pthread IDs of the threads that are +An application is allowed to monitor the thread context switches inside +the threading library. +An application can install a routine that gets called every time a thread +(explicitly created by an application with the +.Xr pthread_create 3 +function) gets the context switched. +The routine is passed the thread IDs of the threads that are being switched in and out. -Installation and removal of these hooks may be done using +Installation and removal of these hooks may be done using the .Fn pthread_switch_add_np and .Fn pthread_switch_delete_np functions respectively. .Sh RETURN VALUES If successful, -functions return 0. +these functions return 0. Otherwise, an error number is returned to indicate the error. .Sh ERRORS The @@ -63,25 +63,25 @@ The may fail if: .Bl -tag -width Er .It Bq Er EINVAL -NULL pointer passed as +.Dv NULL +pointer was passed in the .Fa routine argument. .El +.Pp The .Fn pthread_switch_delete_np may fail if: .Bl -tag -width Er .It Bq Er EINVAL +The .Fa routine -argument is different from argument previously passed to +argument is different from the argument previously passed to the .Fn pthread_switch_add_np +function. .El .Sh SEE ALSO .Xr pthread_create 3 .Sh AUTHORS -The -.Nm -manpage was written by -.An Alexey Zelkin -.Aq phantom@FreeBSD.org - +This manual page was written by +.An Alexey Zelkin Aq phantom@FreeBSD.org . |