summaryrefslogtreecommitdiff
path: root/lib/libpthread
AgeCommit message (Collapse)Author
2009-10-05pthread_attr(3): sync with reality i.e. uncomment descriptions aboutrmind
various functions we support. Fix license style.
2009-10-05pthread(3): mention that we use 1:1 threading model; remove descriptionsrmind
of no longer used environment variables.
2009-10-05Add check to avoid multiple inclusions and redefinitions.rmind
KNF while here.
2009-10-03Don't just look only at the first element in the deadqueue to find lwp'schristos
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-08-12Make nanosleep cancelable again.enami
2009-07-02"unblocks the mutex" -> "unlocks the mutex"rumble
2009-07-02Restore use of _lwp_makecontext, the AMD64 bug has been fixed.joerg
2009-06-25Partially revert 1.110: Use makecontext again until the problems withjoerg
_lwp_makecontext are solved.
2009-05-18Restore PTHREAD__ASM_RASOPS for alpha (from _context_u.S), that wasnjoly
lost in previous cleanup. ok by ad@.
2009-05-17- Convert from makecontext() -> _lwp_makecontext().ad
- 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-16Remove unused code that's confusing when using cscope/opengrok.ad
2009-04-16Add CAVEATS section:wiz
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-11Avoid duplicate .Pp.wiz
2009-04-11Remove trailing whitespace.wiz
2009-04-11.\" are comments, not ./"joerg
2009-04-01Fix the comparision function used by the red-black tree global thread listdrochner
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-03-30Revert the _lwp_ctl which is causing problem. I did test this locally,ad
I guess not well enough.
2009-03-29- Make the threadreg code use _lwp_setprivate() instead of MD hooks.ad
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-01-29pthread_barrier: Fix numerous stupid bugs. Surprising that nobodyad
complained yet.
2009-01-24Fix typo.wiz
2009-01-20- Make thread-affinity and processor-set interfaces mutually exlusive.rmind
- pset_assign: when CPU is assigned, migrate out all LWPs from it.
2009-01-18fix -Wsign-compare issueslukem
2009-01-13fix __sigtimedwait50christos
2009-01-11merge christos-time_tchristos
2008-12-31Bump date for previous.wiz
2008-12-31mention that these may fail with EPERM. From Anon Ymouschristos
2008-12-29revert previous. It was meant for the branchchristos
2008-12-28adjust for time_t 64christos
2008-12-28Some things to do on major bump.ad
2008-11-14Replace semid_t with intptr_t. No function change. This is a libc/kernelad
private interface and so the name change should not affect any third party code.
2008-10-27Fix typo in comment.uwe
2008-10-27Pull down revision 1.3.6.1 by skrll@ (adapted to include reg::r_gbr).uwe
struct mcontext != struct reg on sh3. Fix PTHREAD_UCONTEXT_TO_REG / PTHREAD_REG_TO_UCONTEXT to deal with this.
2008-10-26check for ${PTHREAD_MACHINE_ARCH} before ${MACHINE_ARCH} or ${MACHINE_CPU}mrg
2008-10-25remove ; after __weak_alias()yamt
2008-10-19s/explicitely/explicitly/snj
2008-10-18Do not recommend to mix affinity(3) with pset(3).rmind
2008-10-10pthread_attr_getschedparam: allow without preceding setparam on thead
attr structure.
2008-10-08Clarifications for PTHREAD_DIAGASSERT.ad
2008-10-08Disable diagnostic assertions by default and just return error codes likead
other systems. Allows poorly written applications to appear working. If you are developing pthread apps please turn it on manually by setting the environment variable.
2008-10-08Adjust the compat stuff slightly so that the changes are mostly selfad
contained (Makefile, pthread_compat.c).
2008-09-29make PTHREAD__COMPAT=1ad
Builds a libpthread that can be dropped into a NetBSD 2/3/4 chroot. This makes threading work in the chroot when using a NetBSD 5 kernel, no other modifications required.
2008-09-12Arguments were swapped for cpuset_set(), cpuset_clr(), cpuset_isset()rmind
functions, but man pages were not updated (hi Christos!).
2008-08-11Remove unnecessary include.skrll
2008-08-02Change pthread_mutex_t to use the amount of space as and be congruent tomatt
the version used in the SA version of pthreads. This preserves binary compatibility between both versions of the library.
2008-08-02Change some type to eliminate some lint warnings.matt
2008-07-18add pthread_cond_has_waiters_np()pooka
2008-07-07Selector registers are 16-bit and binutils 2.18 insists that only 16-bitgmcgarry
accesses are permitted on them. Therefore, change movl to movw. No change to machine code generated.
2008-06-28Shut lint up.ad
2008-06-28Avoid spurious assertion failure.ad
2008-06-28Minor correction to previous.ad