diff options
author | Sheldon Hearn <sheldonh@FreeBSD.org> | 2000-03-02 09:14:21 +0000 |
---|---|---|
committer | Sheldon Hearn <sheldonh@FreeBSD.org> | 2000-03-02 09:14:21 +0000 |
commit | c6ff3a1bf74d96278726113478b2c66884aab584 (patch) | |
tree | 6fdc69d4aab26ec98c8573dbb7c07e9edbb0900a /lib/libpthread/man/pthread_create.3 | |
parent | 55609eba05d32edc56e3f69740099d4d9b095cef (diff) |
Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
Notes
Notes:
svn path=/head/; revision=57686
Diffstat (limited to 'lib/libpthread/man/pthread_create.3')
-rw-r--r-- | lib/libpthread/man/pthread_create.3 | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/lib/libpthread/man/pthread_create.3 b/lib/libpthread/man/pthread_create.3 index cdc28a56c854..3e1ed04e80aa 100644 --- a/lib/libpthread/man/pthread_create.3 +++ b/lib/libpthread/man/pthread_create.3 @@ -45,11 +45,14 @@ The .Fn pthread_create function is used to create a new thread, with attributes specified by .Fa attr , -within a process. If +within a process. +If .Fa attr -is NULL, the default attributes are used. If the attributes specified by +is NULL, the default attributes are used. +If the attributes specified by .Fa attr -are modified later, the thread's attributes are not affected. Upon +are modified later, the thread's attributes are not affected. +Upon successful completion .Fn pthread_create will store the ID of the created thread in the location specified by @@ -59,15 +62,18 @@ The thread is created executing .Fa start_routine with .Fa arg -as its sole argument. If the +as its sole argument. +If the .Fa start_routine returns, the effect is as if there was an implicit call to .Fn pthread_exit using the return value of .Fa start_routine -as the exit status. Note that the thread in which +as the exit status. +Note that the thread in which .Fn main -was originally invoked differs from this. When it returns from +was originally invoked differs from this. +When it returns from .Fn main , the effect is as if there was an implicit call to .Fn exit @@ -85,7 +91,8 @@ The set of signals pending for the new thread is empty. .Sh RETURN VALUES If successful, the .Fn pthread_create -function will return zero. Otherwise an error number will be returned to +function will return zero. +Otherwise an error number will be returned to indicate the error. .Sh ERRORS .Fn pthread_create |