jruoho
6218b6cbdb
Xref pthread_attr_getschedparam(3) and sched(3). Use a list for clarity.
2010-07-07 16:07:10 +00:00
jruoho
edddb28a67
Split pthread_attr_getschedparam() and pthread_attr_setschedparam() to a
...
separate page.
2010-07-07 16:04:19 +00:00
jruoho
cf6053f7b6
Split pthread_attr_getinheritsched() and pthread_attr_setinheritsched() to a
...
separate page, and actually document these.
2010-07-07 15:30:32 +00:00
jruoho
904af291c8
Move pthread_attr_getguardsize() and pthread_attr_setguardsize() to a
...
separate page, and actually document these.
2010-07-07 13:04:20 +00:00
jruoho
40267ee9ae
Fix some minor errors/typos and clarify.
2010-07-07 12:49:15 +00:00
jruoho
2bf45345db
Move the thread stack attribute functions to a separate page. In addition,
...
document pthread_attr_getstack() and pthread_attr_setstack(). Try to also
document these a little better (in particular, note some items in the long
list of caveats and questions related to application-controlled thread stack).
2010-07-07 11:04:52 +00:00
njoly
0eab175c82
Add missing list end.
2010-07-07 10:22:33 +00:00
wiz
c4ed068736
Sort sections.
2010-07-07 09:54:07 +00:00
jruoho
dbb0e63cfb
Split pthread_attr_getdetachstate(3) and pthread_attr_setdetachstate(3) to a
...
separate page. Once ready, the main page, pthread_attr(3), will contain a
summary of the various thread attribute functions.
2010-07-07 08:57:36 +00:00
jruoho
7f32058c79
Remove pthread_attr_getscope() and pthread_attr_setscope().
2010-07-07 08:41:11 +00:00
jruoho
69ff1aa9c5
Move pthread_attr_{g,s}etscope() to a separate page and try to document
...
these better. Should fix PR lib/41831 from Wolfgang Stukenbrock.
XXX: Please proofread.
2010-07-07 08:22:53 +00:00
njoly
aab619738e
Add missing list end.
2010-07-06 23:15:47 +00:00
jruoho
6a595a491d
Same here; fix LIBRARY, add COMPATIBILITY/ERRORS, etc.
2010-07-06 22:24:56 +00:00
jruoho
ae0626ba0d
Fix LIBRARY. Add ERRORS and COMPATIBILITY. And some small improvements.
2010-07-06 21:54:12 +00:00
jruoho
935deb263f
Document pthread_attr_get_np(). Fixes PR lib/39289 from ahoka@.
2010-07-06 21:36:34 +00:00
dholland
4035b6ee7d
Improve wording describing the behavior of the attributes argument, and
...
add reference to pthread_attr(3), as requested in PR 42871. The text
added is different from but based on a suggestion by Matthew Mondor.
2010-06-07 04:36:34 +00:00
jruoho
ebe1a1a443
Use a list with the mutex type. Note, from the standard, that recursive
...
mutexes should be avoided when condition variables are used.
2010-05-20 05:19:29 +00:00
jruoho
f395ce5a84
Use similar markup than in pthread_mutex_init(3) etc. with the initializer
...
macro. Improve wording slightly.
2010-05-20 04:47:38 +00:00
jruoho
128d933f6d
.Fa -> .Fn.
2010-05-20 04:41:11 +00:00
jruoho
6e31029d91
Note the initializer macros.
2010-05-20 04:40:23 +00:00
jruoho
9bfaa34d66
Build links for rest of the pthread_attr(3) functions.
...
Hopefully I got all of them right in the setlist...
2010-05-19 20:04:42 +00:00
jruoho
cd2244d3a2
Xref timespec(3).
2010-05-18 06:31:17 +00:00
jruoho
9127e9f198
.Dv.
2010-05-16 12:36:32 +00:00
jruoho
e55b912b81
Add the Butenhof's book to SEE ALSO. (It was decent enough when I read it
...
years ago, but if there are better ones, please feel free to add those.)
2010-05-16 12:23:32 +00:00
jruoho
8292b0e60f
Enumerate the functions in a table instead of a big SEE ALSO.
...
Also some stylistic changes.
2010-05-16 12:20:00 +00:00
explorer
fc70b598c4
fix the pthread pt_lid in the fork callback function that runs in the child instead of a function that may be going away. KNFify
2010-03-25 01:15:00 +00:00
explorer
3f82e012db
Correctly set pt_lid in the child, after a fork
2010-03-24 07:27:22 +00:00
drochner
1982972a07
catch up with the __RENAME of nanosleep(2) a while ago, otherwise we
...
get the compatibility function which assumes a different struct timespec
2010-03-23 20:35:44 +00:00
joerg
f70c7c0422
Use .In instead of .Ar Pa
2010-03-22 21:56:05 +00:00
rmind
63a834705c
pthread_attr(3): sync with reality i.e. uncomment descriptions about
...
various functions we support. Fix license style.
2009-10-05 23:37:01 +00:00
rmind
26ce5a50b4
pthread(3): mention that we use 1:1 threading model; remove descriptions
...
of no longer used environment variables.
2009-10-05 23:35:42 +00:00
rmind
81bc3e51a5
Add check to avoid multiple inclusions and redefinitions.
...
KNF while here.
2009-10-05 23:33:48 +00:00
christos
85ddadbfdc
Don't just look only at the first element in the deadqueue to find lwp's
...
to reuse, because if we lose the race with the kernel we are never going
to reuse any elements. Look in the whole list instead.
XXX: should be pulled up to 5.x
2009-10-03 23:49:50 +00:00
enami
cc63c84008
Make nanosleep cancelable again.
2009-08-12 23:51:23 +00:00
rumble
b222d9680b
"unblocks the mutex" -> "unlocks the mutex"
2009-07-02 19:43:06 +00:00
joerg
cdb510a7bb
Restore use of _lwp_makecontext, the AMD64 bug has been fixed.
2009-07-02 09:59:00 +00:00
joerg
35173b1fce
Partially revert 1.110: Use makecontext again until the problems with
...
_lwp_makecontext are solved.
2009-06-25 13:38:43 +00:00
njoly
49931fb2d8
Restore PTHREAD__ASM_RASOPS for alpha (from _context_u.S), that was
...
lost in previous cleanup.
ok by ad@.
2009-05-18 13:03:35 +00:00
ad
61cac435e4
- Convert from makecontext() -> _lwp_makecontext().
...
- Rely on _lwp_makecontext() to set up the thread identity register.
This is not currently done (a bug), nor does libpthread use the
threadreg yet. I'm doing this so it the code can be used by the
person working on TLS to verify that their threadreg code is working.
2009-05-17 14:49:00 +00:00
ad
a61915e94f
Remove unused code that's confusing when using cscope/opengrok.
2009-05-16 22:20:40 +00:00
wiz
8b5179c21c
Add CAVEATS section:
...
Due to limitations in the current pthread implementation, makecontext(3)
and sigaltstack(2) should not be used in programs which link against
libpthread (whether threads are used or not).
Wording from drochner@ and ad@
Bump date for man pages.
Add note in libpthread/README so it's not forgotten to update the man
pages when the problem is fixed.
2009-04-16 18:37:29 +00:00
wiz
7d9f3abb75
Avoid duplicate .Pp.
2009-04-11 16:51:39 +00:00
wiz
c32974546d
Remove trailing whitespace.
2009-04-11 16:51:28 +00:00
joerg
d3c6cf0458
.\" are comments, not ./"
2009-04-11 15:35:15 +00:00
drochner
f1c955a1b2
Fix the comparision function used by the red-black tree global thread list
...
implementation:
-don't return a difference, this can overflow
-don't try to substract typed pointers which don't belong to the
same object, this gives undefined results
This fixes instabilities of programs which use more than a handful
of threads, eg spuriously failing pthread_join().
2009-04-01 10:13:24 +00:00
ad
7de9da978b
Revert the _lwp_ctl which is causing problem. I did test this locally,
...
I guess not well enough.
2009-03-30 21:32:51 +00:00
ad
5c670ea686
- Make the threadreg code use _lwp_setprivate() instead of MD hooks.
...
XXX This must not be enabled by default because the LWP private mechanism
is reserved for TLS. It is provided only as a test/demo.
XXX Since ucontext_t does not contain the thread private variable, for a
short time after threads are created their thread specific data is unset.
If a signal arrives during that time we are screwed.
- No longer need pthread__osrev.
- Rearrange _lwp_ctl() calls slightly.
2009-03-29 09:30:05 +00:00
ad
a46df1f1f2
pthread_barrier: Fix numerous stupid bugs. Surprising that nobody
...
complained yet.
2009-01-29 21:19:35 +00:00
wiz
0aec71a9f5
Fix typo.
2009-01-24 13:00:03 +00:00
rmind
909e7f4259
- Make thread-affinity and processor-set interfaces mutually exlusive.
...
- pset_assign: when CPU is assigned, migrate out all LWPs from it.
2009-01-20 01:57:35 +00:00